From 9f68fc946a5117a9d695500fa13f8592aa86bdd4 Mon Sep 17 00:00:00 2001 From: Jeff Lucovsky Date: Thu, 17 Jun 2021 08:54:30 -0400 Subject: [PATCH] error: Add error code for sig-related diagnostics This commit adds an error code for the diagnostic code used for diagnostic messages following unexpected termination due to signals.. (cherry picked from commit 501c870a2c176a053f090f7f2535dd989153db4c) --- src/util-error.c | 1 + src/util-error.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/util-error.c b/src/util-error.c index d004d22b38..b39e05a907 100644 --- a/src/util-error.c +++ b/src/util-error.c @@ -379,6 +379,7 @@ const char * SCErrorToString(SCError err) CASE_CODE(SC_ERR_RULE_INVALID_UTF8); CASE_CODE(SC_WARN_CHOWN); CASE_CODE(SC_ERR_HASH_ADD); + CASE_CODE(SC_ERR_SIGNAL); CASE_CODE (SC_ERR_MAX); } diff --git a/src/util-error.h b/src/util-error.h index 07e0078c70..3387c74ae8 100644 --- a/src/util-error.h +++ b/src/util-error.h @@ -369,6 +369,7 @@ typedef enum { SC_ERR_RULE_INVALID_UTF8, SC_WARN_CHOWN, SC_ERR_HASH_ADD, + SC_ERR_SIGNAL, SC_ERR_MAX } SCError; -- 2.47.2