Skip to main content

spawn

Function spawn 

Source
pub fn spawn(
    exe: &Path,
    args: &[String],
    env: &HashMap<String, String>,
    cwd: &Path,
) -> Result<Child>
Expand description

Spawn the child in its own process group (Unix) with given env/cwd/args. kill_on_drop(true) is a belt-and-suspenders guard so an accidentally-dropped Child never leaks a process (C-1 defense in depth).