From b79b66d1192e19d8b279168c67279889cdc30184 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 30 Apr 2018 12:31:41 +0200 Subject: [PATCH] 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 --- man2/getrlimit.2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/man2/getrlimit.2 b/man2/getrlimit.2 index a56286ee1..f488af488 100644 --- a/man2/getrlimit.2 +++ b/man2/getrlimit.2 @@ -599,6 +599,9 @@ inherits its parent's resource limits. Resource limits are preserved across .BR execve (2). .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 current consumption of that resource will succeed (but will prevent the process from further increasing