From: Maurizio Abba Date: Wed, 24 Jan 2018 12:09:11 +0000 (+0000) Subject: signal: enable SIGUSR2 after Reload when delayed-detect X-Git-Tag: suricata-4.1.0-beta1~231 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8354f62b19ddef4aa49d980f614f1147ebf13a7e;p=thirdparty%2Fsuricata.git signal: enable SIGUSR2 after Reload when delayed-detect Enable SIGUSR2 Handler after the first rule reload when delayed-detect is enabled --- diff --git a/src/suricata.c b/src/suricata.c index b3595d23c5..4d59cacbec 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -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); } }