Diff

plugins/mod_posix.lua @ 2433:65b794860e1b

mod_posix: Remove the lines added to work around the util.signal loop bug
author Matthew Wild <mwild1@gmail.com>
date Sun, 10 Jan 2010 14:09:17 +0000
parent 2342:8b20702d5b9e
child 2438:819ba949c7bc
line wrap: on
line diff
--- a/plugins/mod_posix.lua	Sun Jan 10 03:54:29 2010 +0000
+++ b/plugins/mod_posix.lua	Sun Jan 10 14:09:17 2010 +0000
@@ -136,7 +136,6 @@
 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();
@@ -150,7 +149,6 @@
 	
 	signal.signal("SIGINT", function ()
 		module:log("info", "Received SIGINT");
-		signal.signal("SIGINT", function () end); -- Fix to not loop
 		prosody.unlock_globals();
 		prosody.shutdown("Received SIGINT");
 		prosody.lock_globals();