Skip to main content

install_guard

Function install_guard 

Source
pub fn install_guard() -> usize
Expand description

Install the guard; returns how many of SIGTERM / SIGINT carry it (0 when the application already handles both, or on a non-POSIX build). Idempotent. Call it before the session opens, so a signal that arrives during registration is not lost.