aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_posix.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_posix.lua b/plugins/mod_posix.lua
index 697930ca..4b1cf84f 100644
--- a/plugins/mod_posix.lua
+++ b/plugins/mod_posix.lua
@@ -149,6 +149,7 @@ if signal.signal then
signal.signal("SIGINT", function ()
module:log("info", "Received SIGINT");
+ signal.signal("SIGINT", function () end); -- Fixes us getting into some kind of loop
prosody.unlock_globals();
prosody.shutdown("Received SIGINT");
prosody.lock_globals();