pub fn spawn(
name: Option<&str>,
path: &str,
argv: Vec<&str>,
flags: SpawnFlags,
priority: RawContextPriority,
stdin: Option<Ri>,
stdout: Option<Ri>,
stderr: Option<Ri>,
custom_stack_size: Option<NonZero<usize>>,
) -> Result<Pid, ErrorStatus>Expand description
same as unsafe_spawn but safe because it makes it clear that argv are consumed