Software /
code /
prosody
Comparison
plugins/mod_posix.lua @ 2332:7772dde4010b
mod_posix: Catch SIGINT
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 07 Dec 2009 18:38:35 +0000 |
parent | 2074:c59c8f3ec645 |
child | 2338:2a163f6a4bc2 |
comparison
equal
deleted
inserted
replaced
2331:4842ce0c3be4 | 2332:7772dde4010b |
---|---|
144 signal.signal("SIGHUP", function () | 144 signal.signal("SIGHUP", function () |
145 module:log("info", "Received SIGHUP"); | 145 module:log("info", "Received SIGHUP"); |
146 prosody.reload_config(); | 146 prosody.reload_config(); |
147 prosody.reopen_logfiles(); | 147 prosody.reopen_logfiles(); |
148 end); | 148 end); |
149 | |
150 signal.signal("SIGINT", function () | |
151 module:log("info", "Received SIGINT"); | |
152 prosody.unlock_globals(); | |
153 prosody.shutdown("Received SIGINT"); | |
154 prosody.lock_globals(); | |
155 end); | |
149 end | 156 end |