Skip to main content

kill_tree

Function kill_tree 

Source
pub fn kill_tree(pid: u32) -> Result<(), SpawnError>
Expand description

Ends a process and everything it started.

§Errors

Returns SpawnError::Io when the platform’s terminating command cannot be run. A process that has already exited is not an error: the outcome wanted is that it is gone, and it is.