From: Danny Browning Date: Sat, 13 Jan 2018 15:51:20 +0000 (-0700) Subject: runmode-unix-socket: interrupt as commanded (2413) X-Git-Tag: suricata-4.1.0-beta1~298 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=790ef2701a0752a8928bc57ce2bddd4e2b61a206;p=thirdparty%2Fsuricata.git 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. --- 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;