pub fn proc_fork<M: MemorySize>(
ctx: FunctionEnvMut<'_, WasiEnv>,
copy_memory: Bool,
pid_ptr: WasmPtr<Pid, M>,
) -> Result<Errno, WasiError>
Expand description
§proc_fork()
Forks the current process into a new subprocess. If the function returns a zero then its the new subprocess. If it returns a positive number then its the current process and the $pid represents the child.