Skip to main content

shutdown_signal

Function shutdown_signal 

Source
pub fn shutdown_signal() -> u8
Expand description

Returns the signal number that triggered shutdown (0 if none received).

Typically 2 (SIGINT) for Ctrl+C. Used to compute Unix-conventional exit code 128+N in the main function.