mod_posix: Set empty SIGINT handler when a SIGINT is caught
authorMatthew Wild <mwild1@gmail.com>
Tue, 8 Dec 2009 01:16:24 +0000 (01:16 +0000)
committerMatthew Wild <mwild1@gmail.com>
Tue, 8 Dec 2009 01:16:24 +0000 (01:16 +0000)
plugins/mod_posix.lua

index 697930cab39266e11bc9f0cb5ae07399ad09822a..4b1cf84fde04b715f8844543ceed3057e3170c88 100644 (file)
@@ -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();