mirror of https://github.com/mkerrisk/man-pages
fork.2: ERRORS: add pid_max and threads-max to EAGAIN
And rewrite text to be the same as pthread_create(3). Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
20cbd039b2
commit
41dfc98f96
24
man2/fork.2
24
man2/fork.2
|
@ -185,14 +185,22 @@ cannot allocate sufficient memory to copy the parent's page tables and
|
||||||
allocate a task structure for the child.
|
allocate a task structure for the child.
|
||||||
.TP
|
.TP
|
||||||
.B EAGAIN
|
.B EAGAIN
|
||||||
It was not possible to create a new process because the caller's
|
\" NOTE! The following should match the description in pthread_create(3)
|
||||||
.B RLIMIT_NPROC
|
A system-imposed limit on the number of threads was encountered.
|
||||||
resource limit was encountered.
|
There are a number of limits that may trigger this error: the
|
||||||
To exceed this limit, the process must have either the
|
.BR RLIMIT_NPROC
|
||||||
.B CAP_SYS_ADMIN
|
soft resource limit (set via
|
||||||
or the
|
.BR setrlimit (2)),
|
||||||
.B CAP_SYS_RESOURCE
|
which limits the number of processes and threads for a real user ID,
|
||||||
capability.
|
was reached;
|
||||||
|
the kernel's system-wide limit on the number of processes and threads,
|
||||||
|
.IR /proc/sys/kernel/threads-max ,
|
||||||
|
was reached (see
|
||||||
|
.BR proc (5));
|
||||||
|
or the maximum number of PIDs,
|
||||||
|
.IR /proc/sys/kernel/pid_max ,
|
||||||
|
was reached (see
|
||||||
|
.BR proc (5)).
|
||||||
.TP
|
.TP
|
||||||
.B EAGAIN
|
.B EAGAIN
|
||||||
The caller is operating under the
|
The caller is operating under the
|
||||||
|
|
Loading…
Reference in New Issue