From bf54cc865365f7bafc81bc7a8d4ee8a784931ed7 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sat, 18 Feb 2017 11:16:24 +0100 Subject: [PATCH] fork.2: ffix Signed-off-by: Michael Kerrisk --- man2/fork.2 | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/man2/fork.2 b/man2/fork.2 index bd4a1e980..db7b2c0d1 100644 --- a/man2/fork.2 +++ b/man2/fork.2 @@ -212,23 +212,31 @@ is set appropriately. .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 +There are a number of limits that may trigger this error: +.RS +.IP * 3 +the .BR RLIMIT_NPROC soft resource limit (set via .BR setrlimit (2)), which limits the number of processes and threads for a real user ID, was reached; +.IP * 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)); +.IP * the maximum number of PIDs, .IR /proc/sys/kernel/pid_max , was reached (see .BR proc (5)); -or the PID limit -.RB ( pids.max ) +or +.IP * +the PID limit +.RI ( pids.max ) imposed by the cgroup "process number" (PIDs) controller was reached. +.RE .TP .B EAGAIN The caller is operating under the