]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
signal: enable SIGUSR2 after Reload when delayed-detect
authorMaurizio Abba <mabba@lastline.com>
Wed, 24 Jan 2018 12:09:11 +0000 (12:09 +0000)
committerVictor Julien <victor@inliniac.net>
Wed, 31 Jan 2018 13:26:36 +0000 (14:26 +0100)
Enable SIGUSR2 Handler after the first rule reload when delayed-detect
is enabled

src/suricata.c

index b3595d23c5e62e2fd226ca552eb8f6b3d5105d6d..4d59cacbec744a76ae11d485ff222e298a1a458e 100644 (file)
@@ -2466,6 +2466,8 @@ static void PostRunStartedDetectSetup(const SCInstance *suri)
         /* force 'reload', this will load the rules and swap engines */
         DetectEngineReload(suri);
         SCLogNotice("Signature(s) loaded, Detect thread(s) activated.");
+        UtilSignalHandlerSetup(SIGUSR2, SignalHandlerSigusr2);
+        UtilSignalUnblock(SIGUSR2);
     }
 }