]> git.ipfire.org Git - people/ms/suricata.git/commitdiff
error: Add error code for sig-related diagnostics
authorJeff Lucovsky <jeff@lucovsky.org>
Thu, 17 Jun 2021 12:54:30 +0000 (08:54 -0400)
committerVictor Julien <vjulien@oisf.net>
Mon, 3 Jan 2022 11:02:29 +0000 (12:02 +0100)
This commit adds an error code for the diagnostic code used for
diagnostic messages following unexpected termination due to signals..

src/util-error.c
src/util-error.h

index da03eb6779f04e3960b5616e8d51b964e93554d4..ce67836b84af8c19d4ebe00311f575268ea28c62 100644 (file)
@@ -385,6 +385,7 @@ const char * SCErrorToString(SCError err)
         CASE_CODE(SC_ERR_DPDK_EAL_DEINIT);
         CASE_CODE(SC_ERR_DPDK_CONF);
         CASE_CODE(SC_WARN_DPDK_CONF);
+        CASE_CODE(SC_ERR_SIGNAL);
 
         CASE_CODE (SC_ERR_MAX);
     }
index 5a23567c97ae4134adf1a4b0cc70df9764a340f6..1dbff4053afe446952d0884e12defc0890fcc0b7 100644 (file)
@@ -375,6 +375,7 @@ typedef enum {
     SC_ERR_DPDK_EAL_DEINIT,
     SC_ERR_DPDK_CONF,
     SC_WARN_DPDK_CONF,
+    SC_ERR_SIGNAL,
 
     SC_ERR_MAX
 } SCError;