From 58eb6428d1e7ad12d4072e5072f3a3b13bc09767 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Wed, 11 Dec 2013 09:26:18 +0100 Subject: [PATCH] suricata: ignore SIGHUP signal This patch ignores the SIGHUP signal instead of having the default behavior. --- src/suricata.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/suricata.c b/src/suricata.c index d1a438e0fc..2e16169df0 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -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 */ -- 2.47.2