mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Avoid thread-leak in scripts.base.frameworks.file-analysis.bifs.enable-disable btest
This btest uses the exit() BIF to shut down, which immediately calls ::exit() and kills Zeek without doing any shutdown. This will sometimes leave the thread running the storage manager, which causes TSan to complain about a thread leak. Switch to use the terminate() BIF instead which cleanly shuts down all of Zeek.
This commit is contained in:
parent
78267c382c
commit
d5ebaf476d
1 changed files with 1 additions and 1 deletions
|
@ -26,5 +26,5 @@ event zeek_init()
|
||||||
event pe_dos_header(f: fa_file, h: PE::DOSHeader)
|
event pe_dos_header(f: fa_file, h: PE::DOSHeader)
|
||||||
{
|
{
|
||||||
print "got pe_dos_header event";
|
print "got pe_dos_header event";
|
||||||
exit(0);
|
terminate();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue