sys_kill

Function sys_kill 

Source
pub fn sys_kill(
    locked: &mut Locked<Unlocked>,
    current_task: &CurrentTask,
    pid: pid_t,
    unchecked_signal: UncheckedSignal,
) -> Result<(), Errno>
Expand description

The kill syscall can be used to send any signal to any process group or process.

§Args

  • pid: Specifies the target process or process group. See kill(2) for details.
  • unchecked_signal: The signal to send.

§Returns

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