Skip to main content

install_sighup_handler

Function install_sighup_handler 

Source
pub fn install_sighup_handler()
Expand description

Install a SIGHUP signal handler that sets RELOAD_REQUESTED.

Call this once at server startup (before the accept loop). Safe to call on non-Unix platforms — it compiles to a no-op.

The handler itself does the minimum allowed in a signal context: it stores true into an AtomicBool. The actual reload() call happens on the main thread between connection accepts.