Function wasix::lib_generated64::proc_fork
source · pub unsafe fn proc_fork(copy_memory: Bool) -> Result<Pid, Errno>
Expand description
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.
Parameters
copy_memory
- Indicates if the memory will be copied into the new process (if it is not copied this then becomes similar tovfork
in that the current process pauses untilproc_exec
is called)