# HG changeset patch # User Matthew Wild # Date 1260234984 0 # Node ID 2a163f6a4bc2e5c86a95f2d549324523c2586980 # Parent 9eb20b3f3bbb802237e6ed8c3860a44db279c8ca mod_posix: Set empty SIGINT handler when a SIGINT is caught diff -r 9eb20b3f3bbb -r 2a163f6a4bc2 plugins/mod_posix.lua --- a/plugins/mod_posix.lua Tue Dec 08 00:55:17 2009 +0000 +++ b/plugins/mod_posix.lua Tue Dec 08 01:16:24 2009 +0000 @@ -149,6 +149,7 @@ 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();