# HG changeset patch # User Matthew Wild # Date 1263132557 0 # Node ID 65b794860e1b2327eb82755e78f894f7cd2d07c4 # Parent 1e045b3e9dceb5af7509c1637b821f3957e5538c mod_posix: Remove the lines added to work around the util.signal loop bug diff -r 1e045b3e9dce -r 65b794860e1b plugins/mod_posix.lua --- 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();