Function signal_hook::flag::register

source ·
pub fn register(signal: c_int, flag: Arc<AtomicBool>) -> Result<SigId, Error>
Expand description

Registers an action to set the flag to true whenever the given signal arrives.

Panics

If the signal is one of the forbidden.