From 8354f62b19ddef4aa49d980f614f1147ebf13a7e Mon Sep 17 00:00:00 2001 From: Maurizio Abba Date: Wed, 24 Jan 2018 12:09:11 +0000 Subject: [PATCH] signal: enable SIGUSR2 after Reload when delayed-detect Enable SIGUSR2 Handler after the first rule reload when delayed-detect is enabled --- src/suricata.c | 2 ++ 1 file changed, 2 insertions(+) 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); } }