]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
tm-thread: exit loop if suri want to quit 19/head
authorEric Leblond <eric@regit.org>
Thu, 9 Aug 2012 14:47:52 +0000 (16:47 +0200)
committerEric Leblond <eric@regit.org>
Tue, 21 Aug 2012 15:41:25 +0000 (17:41 +0200)
src/tm-threads.c

index 92dbcd92f8daef9a8859939fca4b69772a5e1273..afdb4446a1bffce2ab4de11d27202dcb30717318 100644 (file)
@@ -636,7 +636,8 @@ void *TmThreadsSlotPktAcqLoop(void *td) {
 
         r = s->PktAcqLoop(tv, SC_ATOMIC_GET(s->slot_data), s);
 
-        if (r == TM_ECODE_FAILED || TmThreadsCheckFlag(tv, THV_KILL)) {
+        if (r == TM_ECODE_FAILED || TmThreadsCheckFlag(tv, THV_KILL)
+            || suricata_ctl_flags) {
             run = 0;
         }
     }