mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Drain events before terminating log/thread managers.
Using the default scripts, the events from RemoteSerializer::LogStats() were attempting to use the logging framework after logging/threading had been terminated which never worked right and sometimes caused crashes with "fatal error: cannot lock mutex". Also made communication log baseline test pass more reliably.
This commit is contained in:
parent
a651185ff9
commit
21a0e74d68
3 changed files with 23 additions and 17 deletions
|
@ -313,6 +313,8 @@ void terminate_bro()
|
|||
if ( remote_serializer )
|
||||
remote_serializer->LogStats();
|
||||
|
||||
mgr.Drain();
|
||||
|
||||
log_mgr->Terminate();
|
||||
thread_mgr->Terminate();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue