Software /
code /
prosody
Changeset
2338:2a163f6a4bc2
mod_posix: Set empty SIGINT handler when a SIGINT is caught
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 08 Dec 2009 01:16:24 +0000 |
parents | 2337:9eb20b3f3bbb |
children | 2339:b04014f42fce |
files | plugins/mod_posix.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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();