util.startup: Fix firing of USR1/2 events

This commit is contained in:
Kim Alvefur 2024-03-02 14:08:47 +01:00
parent 1d5021a663
commit dd973a9e43

View file

@ -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