fork(2)

DESCRIPTION

Creates a copy-on-write child process.

SYNOPSIS

long fork(void);

RETURN VALUE

  • Returns a non-negative result on success. Negative values are ABI errno codes.

ERRORS

  • -EAGAIN
    • A process, thread, or registry slot cannot be allocated.
  • -ESRCH
    • There is no current user process.

ABI

Arguments enter through the direct syscall ABI; validation is performed before entering the process subsystem.