Function lrs::signal::send

Sends a signal to a process.

Syntax

fn send(process: i32, signal: Signal) -> Result<(), Errno>

Arguments

NameDescription
process

The process to send the signal to.

signal

The signal to send.

Remarks

If pid is not positive, the behavior is as follows:

pid Behavior
0 The signal is sent to every process in this process's process group.
-1 The signal is sent to every process possible except init.
-n The signal is sent to every process in the process group n.

See also