getrlimit.2: Resource limits are process-wide attributes shared by all threads

This was already noted in pthreads(7), but bears repeating here.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2018-04-30 12:31:41 +02:00
parent 4641c596b3
commit b79b66d119
1 changed files with 3 additions and 0 deletions

View File

@ -599,6 +599,9 @@ inherits its parent's resource limits.
Resource limits are preserved across Resource limits are preserved across
.BR execve (2). .BR execve (2).
.PP .PP
Resource limits are per-process attributes that are shared
by all of the threads in a process.
.PP
Lowering the soft limit for a resource below the process's Lowering the soft limit for a resource below the process's
current consumption of that resource will succeed current consumption of that resource will succeed
(but will prevent the process from further increasing (but will prevent the process from further increasing