aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-12-08 01:24:16 +0000
committerMatthew Wild <mwild1@gmail.com>2009-12-08 01:24:16 +0000
commitac9d44a858f4d4374fc97ef9b2f6959b460ea863 (patch)
treed313e245e99b48414483ee5eb01583c0b921c71d /plugins
parent162e9872636d2d884f7ad4caac84315a051266f2 (diff)
downloadprosody-ac9d44a858f4d4374fc97ef9b2f6959b460ea863.tar.gz
prosody-ac9d44a858f4d4374fc97ef9b2f6959b460ea863.zip
mod_posix: Fix to not loop in SIGTERM either, but the same happens with SIGHUP (where the same 'fix' can't be applied) - shall investigate tomorrow
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_posix.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_posix.lua b/plugins/mod_posix.lua
index 4b1cf84f..95b95034 100644
--- a/plugins/mod_posix.lua
+++ b/plugins/mod_posix.lua
@@ -136,6 +136,7 @@ module:add_event_hook("server-stopped", remove_pidfile);
if signal.signal then
signal.signal("SIGTERM", function ()
module:log("warn", "Received SIGTERM");
+ signal.signal("SIGTERM", function () end); -- Fixes us getting into some kind of loop
prosody.unlock_globals();
prosody.shutdown("Received SIGTERM");
prosody.lock_globals();
@@ -149,7 +150,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
+ signal.signal("SIGINT", function () end); -- Fix to not loop
prosody.unlock_globals();
prosody.shutdown("Received SIGINT");
prosody.lock_globals();