compio_signal::unix

Function signal

Source
pub async fn signal(sig: i32) -> Result<()>
Available on Unix only.
Expand description

Creates a new listener which will receive notifications when the current process receives the specified signal.

It sets the signal mask of the current thread.