From 1d3050c0dd7ff6e31a5879746ea9d955f0ceb7fb Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 22 Jan 2014 15:44:30 +0100 Subject: [PATCH] getrlimit.2: Note that rlim_cur can be set lower than current resource consumption MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported-by: Марк Коренберг Signed-off-by: Michael Kerrisk --- man2/getrlimit.2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/man2/getrlimit.2 b/man2/getrlimit.2 index eff4df0cb..f608b928b 100644 --- a/man2/getrlimit.2 +++ b/man2/getrlimit.2 @@ -61,7 +61,7 @@ .\" 2008-05-07, mtk / Peter Zijlstra, Added description of RLIMIT_RTTIME .\" 2010-11-06, mtk: Added documentation of prlimit() .\" -.TH GETRLIMIT 2 2013-02-11 "Linux" "Linux Programmer's Manual" +.TH GETRLIMIT 2 2014-01-22 "Linux" "Linux Programmer's Manual" .SH NAME getrlimit, setrlimit, prlimit \- get/set resource limits .SH SYNOPSIS @@ -500,6 +500,11 @@ inherits its parent's resource limits. Resource limits are preserved across .BR execve (2). +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 +its consumption of the resource). + One can set the resource limits of the shell using the built-in .IR ulimit command