Skip to main content

spawn_self

Function spawn_self 

Source
pub fn spawn_self(args: &[&str]) -> i32
Expand description

fork; the child execs /proc/self/exe with argv[0], the arguments (at most 31) and the current environment (exit 127 when that fails) -> 0 / -1 [plat_spawn_self]