From 1b62552e1d71b9e2cae804949525f994ecce1a9b Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 10 Mar 2024 15:56:01 +0100 Subject: 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/startup.lua b/util/startup.lua index 1474de61..92bf2987 100644 --- a/util/startup.lua +++ b/util/startup.lua @@ -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; -- cgit v1.2.3