util.startup: Hook signals after daemonization

signalfds stop working with epoll after forking

hooking signals later should not affect anything
This commit is contained in:
Kim Alvefur 2024-03-06 20:43:25 +01:00
parent fabcc21881
commit ed94077e82

View file

@ -790,9 +790,9 @@ function startup.prosody()
startup.init_http_client();
startup.init_data_store();
startup.init_global_protection();
startup.hook_posix_signals();
startup.prepare_to_start();
startup.notify_started();
startup.hook_posix_signals();
end
return startup;