From ed94077e82bbec1ce020b820a72de751b48d2f7d Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 6 Mar 2024 20:43:25 +0100 Subject: util.startup: Hook signals after daemonization signalfds stop working with epoll after forking hooking signals later should not affect anything --- util/startup.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/startup.lua b/util/startup.lua index 92bf2987..1474de61 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