Mercurial > prosody-hg
comparison plugins/mod_posix.lua @ 9763:982529dd0bed 0.11
mod_posix: Don't reload logging twice
See 18eca6afb367
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 06 Jan 2019 12:17:00 +0100 |
| parents | a7a9d9511dc1 |
| children | 1460c4966262 5cf481bee678 |
comparison
equal
deleted
inserted
replaced
| 9762:34988a408b74 | 9763:982529dd0bed |
|---|---|
| 170 end); | 170 end); |
| 171 | 171 |
| 172 signal.signal("SIGHUP", function () | 172 signal.signal("SIGHUP", function () |
| 173 module:log("info", "Received SIGHUP"); | 173 module:log("info", "Received SIGHUP"); |
| 174 prosody.reload_config(); | 174 prosody.reload_config(); |
| 175 prosody.reopen_logfiles(); | 175 -- this also reloads logging |
| 176 end); | 176 end); |
| 177 | 177 |
| 178 signal.signal("SIGINT", function () | 178 signal.signal("SIGINT", function () |
| 179 module:log("info", "Received SIGINT"); | 179 module:log("info", "Received SIGINT"); |
| 180 prosody.unlock_globals(); | 180 prosody.unlock_globals(); |
