Menu

Reference / Process

fork()

function
function fork(): int

Fork the process with fork(2).

Do not call it from inside a running Async scheduler; fork before any scheduler starts.

Returns

int — 0 in the child, the child's pid in the parent, -1 on failure

View source