147 prosody.reopen_logfiles(); |
147 prosody.reopen_logfiles(); |
148 end); |
148 end); |
149 |
149 |
150 signal.signal("SIGINT", function () |
150 signal.signal("SIGINT", function () |
151 module:log("info", "Received SIGINT"); |
151 module:log("info", "Received SIGINT"); |
|
152 signal.signal("SIGINT", function () end); -- Fixes us getting into some kind of loop |
152 prosody.unlock_globals(); |
153 prosody.unlock_globals(); |
153 prosody.shutdown("Received SIGINT"); |
154 prosody.shutdown("Received SIGINT"); |
154 prosody.lock_globals(); |
155 prosody.lock_globals(); |
155 end); |
156 end); |
156 end |
157 end |