signal: enable SIGUSR2 after Reload when delayed-detect

Enable SIGUSR2 Handler after the first rule reload when delayed-detect
is enabled
pull/3209/head
Maurizio Abba 7 years ago committed by Victor Julien
parent 3c68a22092
commit 8354f62b19

@ -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);
}
}

Loading…
Cancel
Save