pub fn install_guard() -> usizeExpand 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.