getrlimit.2: Note that rlim_cur can be set lower than current resource consumption

Reported-by: Марк Коренберг <socketpair@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-01-22 15:44:30 +01:00
parent 8dc3367531
commit 1d3050c0dd
1 changed files with 6 additions and 1 deletions

View File

@ -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