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.
pull/3184/head
Danny Browning 7 years ago committed by Eric Leblond
parent 63b9b9e9aa
commit 790ef2701a

@ -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;

Loading…
Cancel
Save