]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
runmode-unix-socket: interrupt as commanded (2413)
authorDanny Browning <danny.browning@protectwise.com>
Sat, 13 Jan 2018 15:51:20 +0000 (08:51 -0700)
committerEric Leblond <eric@regit.org>
Tue, 23 Jan 2018 12:41:57 +0000 (13:41 +0100)
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

index 528fef574e7a2a31914807284d10a4144b7f70c4..c28eee836fbe06f6e4ce839a1e4999a3982b490c 100644 (file)
@@ -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;