From 448eac7da4cd5972f391cf56db20cf5d72a4c7e8 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 18 May 2021 20:08:37 +0200 Subject: 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. --- prosody | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prosody') 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); -- cgit v1.2.3