From 452d3c43089526c2859ac6da54718bf0b2294480 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Thu, 9 Aug 2012 16:47:52 +0200 Subject: [PATCH] tm-thread: exit loop if suri want to quit --- src/tm-threads.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } } -- 2.47.2