stdlib/signalView source ↗
signal
6 items · generated by scribe fromstdlib/signal.fd· synced 2026-11-15
Contents
- SIGHUP: (const)
- sig_register (function)
- sig_check (function)
- sig_raise (function)
- sig_register_shutdown (function)
- sig_shutdown_requested (function)
SIGHUP:
pub const SIGHUP: i64 = 1; pub const SIGINT: i64 = 2; pub const SIGQUIT: i64 = 3; pub const SIGILL: i64 = 4; pub const SIGTRAP: i64 = 5; pub const SIGABRT: i64 = 6; pub const SIGBUS: i64 = 7; pub const SIGFPE: i64 = 8; pub const SIGKILL: i64 = 9; pub const SIGUSR1: i64 = 10; pub const SIGSEGV: i64 = 11; pub const SIGUSR2: i64 = 12; pub const SIGPIPE: i64 = 13; pub const SIGALRM: i64 = 14; pub const SIGTERM: i64 = 15;Defined at line 17
sig_register
Install the flag-trampoline handler for sig. Returns 0 on success, -1 on failure. Note: SIGKILL/SIGSEGV etc. cannot be caught — signal() returns error.
pub fn sig_register(sig: i64) -> i64 {Parameters:
sig:i64
Returns: i64
Defined at line 23
sig_check
Check and clear the flag for sig: returns 1 if the signal was received since the last check, 0 otherwise.
pub fn sig_check(sig: i64) -> i64 {Parameters:
sig:i64
Returns: i64
Defined at line 29
sig_raise
Raise sig in the current process (for testing handlers).
pub fn sig_raise(sig: i64) -> i64 {Parameters:
sig:i64
Returns: i64
Defined at line 34
sig_register_shutdown
Register SIGINT + SIGTERM (graceful-shutdown pair). Returns 0 if both registered.
pub fn sig_register_shutdown() -> i64 {Returns: i64
Defined at line 42
sig_shutdown_requested
True once if SIGINT or SIGTERM arrived since last check.
pub fn sig_shutdown_requested() -> bool {Returns: bool
Defined at line 52
Generated by scribe, the Fides documentation generator