aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2024-03-06 20:43:25 +0100
committerKim Alvefur <zash@zash.se>2024-03-06 20:43:25 +0100
commited94077e82bbec1ce020b820a72de751b48d2f7d (patch)
tree5062973bcb8fe48a9fc5a1b57b7a78b93758d007
parentfabcc218817f0accba74a109efe42aa94fda087d (diff)
downloadprosody-ed94077e82bbec1ce020b820a72de751b48d2f7d.tar.gz
prosody-ed94077e82bbec1ce020b820a72de751b48d2f7d.zip
util.startup: Hook signals after daemonization
signalfds stop working with epoll after forking hooking signals later should not affect anything
-rw-r--r--util/startup.lua2
1 files changed, 1 insertions, 1 deletions
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;