From 790ef2701a0752a8928bc57ce2bddd4e2b61a206 Mon Sep 17 00:00:00 2001 From: Danny Browning Date: Sat, 13 Jan 2018 08:51:20 -0700 Subject: [PATCH] runmode-unix-socket: interrupt as commanded (2413) https://redmine.openinfosecfoundation.org/issues/2413 Once interrupt occurs, reset the interrupt flag so that future runs are not immediately interrupted. --- src/runmode-unix-socket.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runmode-unix-socket.c b/src/runmode-unix-socket.c index 528fef574e..c28eee836f 100644 --- a/src/runmode-unix-socket.c +++ b/src/runmode-unix-socket.c @@ -589,6 +589,7 @@ TmEcode UnixSocketPcapFile(TmEcode tm, struct timespec *last_processed) case TM_ECODE_OK: if (unix_manager_pcap_task_interrupted == 1) { SCLogInfo("Interrupting current run mode"); + unix_manager_pcap_task_interrupted = 0; return TM_ECODE_DONE; } else { return TM_ECODE_OK;