aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_fsm_spec.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2024-03-23 20:48:19 +0100
committerKim Alvefur <zash@zash.se>2024-03-23 20:48:19 +0100
commitc2c82a10d3839afe8f74a29588723096c08ac1f8 (patch)
treea68523ab3395c2ec230a096c49366283700476c8 /spec/util_fsm_spec.lua
parent2bc341d8b10b37a949e5108f45286857891e77e9 (diff)
downloadprosody-c2c82a10d3839afe8f74a29588723096c08ac1f8.tar.gz
prosody-c2c82a10d3839afe8f74a29588723096c08ac1f8.zip
mod_posix: Move everything to util.startup
This allows greater control over the order of events. Notably, the internal ordering between daemonization, initialization of libunbound and setup of signal handling is sensitive. libunbound starts a separate thread for processing DNS requests. If this thread is started before signal handling has been set up, it will not inherit the signal handlers and instead behave as it would have before signal handlers were set up, i.e. cause the whole process to immediately exit. libunbound is usually initialized on the first DNS request, usually triggered by an outgoing s2s connection attempt. If daemonization happens before signals have been set up, signals may not be processed at all.
Diffstat (limited to 'spec/util_fsm_spec.lua')
0 files changed, 0 insertions, 0 deletions