diff options
author | Kim Alvefur <zash@zash.se> | 2024-03-23 20:48:19 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2024-03-23 20:48:19 +0100 |
commit | c2c82a10d3839afe8f74a29588723096c08ac1f8 (patch) | |
tree | a68523ab3395c2ec230a096c49366283700476c8 /plugins/mod_s2s.lua | |
parent | 2bc341d8b10b37a949e5108f45286857891e77e9 (diff) | |
download | prosody-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 'plugins/mod_s2s.lua')
0 files changed, 0 insertions, 0 deletions