Function compio_signal::unix::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.