sys_tkill

Function sys_tkill 

Source
pub fn sys_tkill(
    locked: &mut Locked<Unlocked>,
    current_task: &CurrentTask,
    tid: tid_t,
    unchecked_signal: UncheckedSignal,
) -> Result<(), Errno>
Expand description

The tkill syscall sends the signal unchecked_signal to the thread with the thread ID tid.

This is an obsolete and non-standard syscall that is replaced by tgkill.

§Args

  • tid: The thread ID of the thread to send the signal to.
  • unchecked_signal: The signal to send.

§Returns

Ok(()) on success. Otherwise, returns an Errno with the error code.