mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
util.startup: Fix firing of USR1/2 events
This commit is contained in:
parent
1d5021a663
commit
dd973a9e43
1 changed files with 2 additions and 2 deletions
|
@ -704,12 +704,12 @@ function startup.hook_posix_signals()
|
|||
|
||||
signal.signal("SIGUSR1", function()
|
||||
log("info", "Received SIGUSR1");
|
||||
fire_event("signal/SIGUSR1");
|
||||
prosody.events.fire_event("signal/SIGUSR1");
|
||||
end);
|
||||
|
||||
signal.signal("SIGUSR2", function()
|
||||
log("info", "Received SIGUSR2");
|
||||
fire_event("signal/SIGUSR2");
|
||||
prosody.events.fire_event("signal/SIGUSR2");
|
||||
end);
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue