Sends a signal to a process.
fn send(process: i32, signal: Signal) -> Result<(), Errno>
| Name | Description |
|---|---|
| process | The process to send the signal to. |
| signal | The signal to send. |
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. |