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 to vfork in that the current process pauses until proc_exec is called)