pub async fn signal(sig: i32) -> Result<()>
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.