pub fn check_pending_signals() -> Result<bool, KernelError>Expand description
Check for and deliver any pending signals on the current process/thread.
This function should be called on the syscall return path (or on return from interrupt) to deliver signals at a safe point. It dequeues the lowest-numbered pending unblocked signal and, if a user-space handler is registered, constructs a signal frame so the handler executes on return to user mode.
§Returns
Ok(true)if a signal was delivered (thread context was modified).Ok(false)if no deliverable signal was pending.Err(...)on failure.