From: Eric Leblond Date: Thu, 9 Aug 2012 14:47:52 +0000 (+0200) Subject: tm-thread: exit loop if suri want to quit X-Git-Tag: suricata-1.4beta1~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F19%2Fhead;p=thirdparty%2Fsuricata.git tm-thread: exit loop if suri want to quit --- diff --git a/src/tm-threads.c b/src/tm-threads.c index 92dbcd92f8..afdb4446a1 100644 --- a/src/tm-threads.c +++ b/src/tm-threads.c @@ -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; } }