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 Pid::INIT
, this sends a signal to all processes the current
process has permission to send signals to, except process Pid::INIT
,
possibly other system-specific processes, and on some systems, the current
process.