util.startup: Back out 598df17b8ebb
authorKim Alvefur <zash@zash.se>
Sun, 10 Mar 2024 15:56:01 +0100
changeset 13463 790f60c0843b
parent 13462 598df17b8ebb
child 13464 a688947fab1e
util.startup: Back out 598df17b8ebb Broke signal handling again, such that an early s2s connection results in libunbound catching signals and getting Prosody killed on e.g. SIGHUP This returns to the situation where prosody --daemonize does not respond to signals.
util/startup.lua
--- a/util/startup.lua	Wed Mar 06 20:43:25 2024 +0100
+++ b/util/startup.lua	Sun Mar 10 15:56:01 2024 +0100
@@ -790,9 +790,9 @@
 	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;