From 5da4e2583a68c0b7b600fc6afe7da6000c05fe8c Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 8 Dec 2009 01:16:24 +0000 Subject: mod_posix: Set empty SIGINT handler when a SIGINT is caught --- plugins/mod_posix.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/mod_posix.lua') 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(); -- cgit v1.2.3