projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9f11c1
)
mod_posix: Set empty SIGINT handler when a SIGINT is caught
author
Matthew Wild
<mwild1@gmail.com>
Tue, 8 Dec 2009 01:16:24 +0000
(
01:16
+0000)
committer
Matthew Wild
<mwild1@gmail.com>
Tue, 8 Dec 2009 01:16:24 +0000
(
01:16
+0000)
plugins/mod_posix.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_posix.lua
b/plugins/mod_posix.lua
index 697930cab39266e11bc9f0cb5ae07399ad09822a..4b1cf84fde04b715f8844543ceed3057e3170c88 100644
(file)
--- a/
plugins/mod_posix.lua
+++ b/
plugins/mod_posix.lua
@@
-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();