summaryrefslogtreecommitdiffstats
path: root/src/tmqh-simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tmqh-simple.c')
-rw-r--r--src/tmqh-simple.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tmqh-simple.c b/src/tmqh-simple.c
index 47faed5..0bfa173 100644
--- a/src/tmqh-simple.c
+++ b/src/tmqh-simple.c
@@ -76,8 +76,11 @@ void TmqhInputSimpleShutdownHandler(ThreadVars *tv)
return;
}
- for (i = 0; i < (tv->inq->reader_cnt + tv->inq->writer_cnt); i++)
+ for (i = 0; i < (tv->inq->reader_cnt + tv->inq->writer_cnt); i++) {
+ SCMutexLock(&tv->inq->pq->mutex_q);
SCCondSignal(&tv->inq->pq->cond_q);
+ SCMutexUnlock(&tv->inq->pq->mutex_q);
+ }
}
void TmqhOutputSimple(ThreadVars *t, Packet *p)