Skip to content
BSD syscall#2

svc · unix #2

fork

Duplicates the calling process, returning the child's PID in the parent and 0 in the child.

Prototype

int fork(void);

Returns: int

Version history

XNU tagmacOS#
xnu-1456.1.26macOS 10.6 Snow Leopard2
xnu-1486.2.112
xnu-1504.15.32
xnu-1504.3.122
xnu-1504.7.42
xnu-1504.9.172
xnu-1504.9.262
xnu-1504.9.372

Notes

No prose documentation yet.