signal_hook::flag
pub fn register(signal: c_int, flag: Arc<AtomicBool>) -> Result<SigId, Error>
Registers an action to set the flag to true whenever the given signal arrives.
true