Skip to main content

send_signal

Function send_signal 

Source
pub fn send_signal(task: &Task, signal_info: SignalInfo) -> Result<(), Errno>
Expand description

Sends signal_info to task.

May only fail for real-time signals (with EAGAIN when RLIMIT_SIGPENDING is reached) and always succeeds for standard signals.

Callers must not hold ThreadGroupMutableStateLock, as delivering SIGKILL or waking the thread group acquires the target thread group’s write lock.