]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rule reloads: don't lock up main thread so clean shutdown is impossible
authorVictor Julien <victor@inliniac.net>
Mon, 27 Aug 2012 15:35:46 +0000 (17:35 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 27 Aug 2012 15:35:46 +0000 (17:35 +0200)
src/detect-engine.c

index c0206906a8fcbaa41025eb55f197768909362f71..e3ad221ac4addf3b566deaec54f1349a1a01edcd 100644 (file)
@@ -88,6 +88,9 @@ static void *DetectEngineLiveRuleSwap(void *arg)
     /* block usr2.  usr2 to be handled by the main thread only */
     UtilSignalBlock(SIGUSR2);
 
+    /* release TmThreadSpawn */
+    TmThreadsSetFlag(tv_local, THV_INIT_DONE);
+
     ConfDeInit();
     ConfInit();