]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
suricata: ignore SIGHUP signal 711/head
authorEric Leblond <eric@regit.org>
Wed, 11 Dec 2013 08:26:18 +0000 (09:26 +0100)
committerEric Leblond <eric@regit.org>
Wed, 11 Dec 2013 08:26:18 +0000 (09:26 +0100)
This patch ignores the SIGHUP signal instead of having the default
behavior.

src/suricata.c

index d1a438e0fc4e92da0936523965a5229b9dd9b771..2e16169df02ea2b357d5538336e9c1c05fa9295f 100644 (file)
@@ -272,13 +272,6 @@ void SignalHandlerSigusr2(int sig)
     return;
 }
 
-#if 0
-static void SignalHandlerSighup(/*@unused@*/ int sig) {
-    sighup_count = 1;
-    suricata_ctl_flags |= SURICATA_SIGHUP;
-}
-#endif
-
 #ifdef DBG_MEM_ALLOC
 #ifndef _GLOBAL_MEM_
 #define _GLOBAL_MEM_
@@ -1630,7 +1623,7 @@ static int InitSignalHandler(SCInstance *suri)
 
 #ifndef OS_WIN32
     /* SIGHUP is not implemented on WIN32 */
-    //UtilSignalHandlerSetup(SIGHUP, SignalHandlerSighup);
+    UtilSignalHandlerSetup(SIGHUP, SIG_IGN);
 
     /* Try to get user/group to run suricata as if
        command line as not decide of that */