Function rustix::process::kill_process_group

source ·
pub fn kill_process_group(pid: Pid, sig: Signal) -> Result<()>
Available on crate feature process only.
Expand description

kill(-pid, sig)—Sends a signal to all processes in a process group.

If pid is 1, this sends a signal to all processes the current process has permission to send signals to, except process 1, possibly other system-specific processes, and on some systems, the current process.

§References