aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2017-10-09 15:48:47 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2017-10-09 15:48:47 +0200
commitda06433e6dca4db6a200b87d0c812bf4ce7278fe (patch)
tree7d0064dc1bc60b2c9109686d1b94417ac2ee51db
parent63345f2229f06d6b712ad7cbf3e1dd7d0bcf9a21 (diff)
downloadman-pages-da06433e6dca4db6a200b87d0c812bf4ce7278fe.tar.gz
getrlimit.2: Make it clear RLIMIT_NPROC is a limit on current number of processes
https://twitter.com/silentbicycle/status/893849097903505409 Reported-by: Scott Vokes <vokes.s@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/getrlimit.27
1 files changed, 4 insertions, 3 deletions
diff --git a/man2/getrlimit.2 b/man2/getrlimit.2
index 5876c6f7c..24091137e 100644
--- a/man2/getrlimit.2
+++ b/man2/getrlimit.2
@@ -344,10 +344,11 @@ For further details, see
.BR unix (7).
.TP
.B RLIMIT_NPROC
-This is the maximum number of processes
+This is a limit on the number of extant process
(or, more precisely on Linux, threads)
-that can be created for the real user ID of the calling process.
-Upon encountering this limit,
+for the real user ID of the calling process.
+So long as the current number of processes belonging to this
+process's real user ID is greater than or equal to this limit,
.BR fork (2)
fails with the error
.BR EAGAIN .