diff options
author | Kim Alvefur <zash@zash.se> | 2021-05-18 20:08:37 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-05-18 20:08:37 +0200 |
commit | 448eac7da4cd5972f391cf56db20cf5d72a4c7e8 (patch) | |
tree | 188df5e17608a13d0a5e132969a1fcd3789d940d | |
parent | c7396c9aac97201b3a37acbdf07a08eede93e7f3 (diff) | |
download | prosody-448eac7da4cd5972f391cf56db20cf5d72a4c7e8.tar.gz prosody-448eac7da4cd5972f391cf56db20cf5d72a4c7e8.zip |
prosody: Close the state on exit (ie garbage-collect everything)
This ensures __gc is called on everything that may need it, such as
database connections.
It was reported in the chat by Happy that SQLite3 does not close its
state cleanly in WAL mode, leaving the WAL file behind. This is probably
rather a bug in mod_storage_sql, but forcing a final GC sweep should
also help with such things everywhere.
-rwxr-xr-x | prosody | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -92,4 +92,4 @@ prosody.log("info", "Shutdown complete"); prosody.log("debug", "Shutdown reason was: %s", prosody.shutdown_reason or "not specified"); prosody.log("debug", "Exiting with status code: %d", prosody.shutdown_code or 0); -os.exit(prosody.shutdown_code); +os.exit(prosody.shutdown_code, true); |