Skip to main content

kill_pid

Function kill_pid 

Source
pub fn kill_pid(pid: u32, kill_group: bool)
Expand description

Best-effort immediate termination of a child PID (or its Unix process group when kill_group is true). Portable across Unix and Windows, with zero unsafe (uses rustix::process on Unix and taskkill /T /F on Windows).