|Newer page:||version 5||Last edited on Monday, March 17, 2003 2:04:27 am||by PerryLorier|
|Older page:||version 4||Last edited on Tuesday, November 5, 2002 3:02:57 pm||by JohnMcPherson||Revert|
@@ -15,8 +15,9 @@
On success, the PID of the child process is returned in the parent's thread of execution, and a 0 is returned in the child's thread of execution. On failure, a -1 will be returned in the parent's context, no child process will be created, and ''errno'' will be set appropriately.
;[EAGAIN]: fork(2) cannot allocate sufficient memory to copy the parent's page tables and allocate a task structure for the child, or the number of processors would exceed the limit of the number of processes either system wide, or for a particular users. (CHILD_MAX)
;[ENOMEM]: fork(2) failed to allocate the necessary kernel structures because memory is tight.
The fork(2) call conforms to SVr4, SVID, [POSIX], X/OPEN, BSD 4.3.