mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
New option exit_only_after_terminate to prevent Bro from exiting.
If set, the main loop won't terminate before somebody calls terminate(). This should make input framework testing more reliable I'd hope.
This commit is contained in:
parent
fdf79196c6
commit
4f39470c1b
3 changed files with 12 additions and 1 deletions
|
@ -421,7 +421,8 @@ void net_run()
|
|||
set_processing_status("RUNNING", "net_run");
|
||||
|
||||
while ( io_sources.Size() ||
|
||||
(packet_sorter && ! packet_sorter->Empty()) )
|
||||
(packet_sorter && ! packet_sorter->Empty()) ||
|
||||
(BifConst::exit_only_after_terminate && ! terminating) )
|
||||
{
|
||||
double ts;
|
||||
IOSource* src = io_sources.FindSoonest(&ts);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue