Skip to main content

SYS_PROC_FORK

Constant SYS_PROC_FORK 

Source
pub const SYS_PROC_FORK: usize = 302;
Expand description

Fork the current process (copy-on-write).

  • frame: pointer to the SyscallFrame to restore in the child

Returns 0 in the child process, and the child PID in the parent. The child gets a copy of the parent’s address space (COW).