mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Fix a deadlock w/ SQLite.
sqlite3_shutdown() was called a bit too early, when SQLite-using threads may still have yet to fully shutdown.
This commit is contained in:
parent
ee8111441a
commit
dc370fdd8d
1 changed files with 2 additions and 2 deletions
|
@ -1154,10 +1154,10 @@ int main(int argc, char** argv)
|
||||||
curl_global_cleanup();
|
curl_global_cleanup();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
sqlite3_shutdown();
|
|
||||||
|
|
||||||
terminate_bro();
|
terminate_bro();
|
||||||
|
|
||||||
|
sqlite3_shutdown();
|
||||||
|
|
||||||
// Close files after net_delete(), because net_delete()
|
// Close files after net_delete(), because net_delete()
|
||||||
// might write to connection content files.
|
// might write to connection content files.
|
||||||
BroFile::CloseCachedFiles();
|
BroFile::CloseCachedFiles();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue