Skip to main content

kill_pid_on_exit

Function kill_pid_on_exit 

Source
pub fn kill_pid_on_exit(pid: u32, kill_group: bool) -> KillPidOnExit
Expand description

Registers pid to be killed by exits that skip destructors (watchdog timeout/OOM, allocation failure), for as long as the returned guard lives. Set kill_group = true when the child is a Unix process-group leader.