aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-05-18 20:08:37 +0200
committerKim Alvefur <zash@zash.se>2021-05-18 20:08:37 +0200
commit448eac7da4cd5972f391cf56db20cf5d72a4c7e8 (patch)
tree188df5e17608a13d0a5e132969a1fcd3789d940d /prosody
parentc7396c9aac97201b3a37acbdf07a08eede93e7f3 (diff)
downloadprosody-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.
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody2
1 files changed, 1 insertions, 1 deletions
diff --git a/prosody b/prosody
index 87f24291..164d0f94 100755
--- a/prosody
+++ b/prosody
@@ -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);