pub fn sys_rt_sigsuspend(
locked: &mut Locked<Unlocked>,
current_task: &mut CurrentTask,
user_mask: UserRef<SigSet>,
sigset_size: usize,
) -> Result<(), Errno>Expand description
The rt_sigsuspend syscall temporarily replaces the signal mask of the calling thread with
the mask given by user_mask and then suspends the thread until delivery of a signal whose
action is to invoke a signal handler or to terminate a process.
§Args
user_mask: A pointer to a signal set that will temporarily replace the thread’s signal mask.sigset_size: The size of the signal set, in bytes.
§Returns
This function never returns Ok(()). It always returns an Errno, typically EINTR (or a
restart equivalent).