Function shutdown_signal_with_sighup

Source
pub async fn shutdown_signal_with_sighup(state: Arc<AppState>)
Expand description

Block until SIGINT or SIGTERM is received. SIGHUP is handled inline: each received SIGHUP triggers an immediate policy snapshot reload so operators can force a refresh without touching the filesystem. The loop is iterative (no recursion) so multiple SIGHUPs don’t grow the stack.