fork.2: EAGAIN is not reported when task allocation fails

I am not sure why we have:

   "EAGAIN fork() cannot allocate sufficient memory to copy
    the parent's page tables and allocate a task structure
    or the child."

The text seems to be there from the time when man-pages
were moved to git so there is no history for it.

And it doesn't reflect reality: the kernel reports both
dup_task_struct and dup_mm failures as ENOMEM to the
userspace. This seems to be the case from early 2.x times
so let's simply remove this part.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michal Hocko 2015-02-03 16:48:37 +01:00 committed by Michael Kerrisk
parent 2702dc2175
commit 17ad768d41
1 changed files with 0 additions and 5 deletions

View File

@ -185,11 +185,6 @@ is set appropriately.
.SH ERRORS
.TP
.B EAGAIN
.BR fork ()
cannot allocate sufficient memory to copy the parent's page tables and
allocate a task structure for the child.
.TP
.B EAGAIN
\" NOTE! The following should match the description in pthread_create(3)
A system-imposed limit on the number of threads was encountered.
There are a number of limits that may trigger this error: the