mirror of https://github.com/mkerrisk/man-pages
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:
parent
8dc3367531
commit
1d3050c0dd
|
@ -61,7 +61,7 @@
|
||||||
.\" 2008-05-07, mtk / Peter Zijlstra, Added description of RLIMIT_RTTIME
|
.\" 2008-05-07, mtk / Peter Zijlstra, Added description of RLIMIT_RTTIME
|
||||||
.\" 2010-11-06, mtk: Added documentation of prlimit()
|
.\" 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
|
.SH NAME
|
||||||
getrlimit, setrlimit, prlimit \- get/set resource limits
|
getrlimit, setrlimit, prlimit \- get/set resource limits
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
@ -500,6 +500,11 @@ inherits its parent's resource limits.
|
||||||
Resource limits are preserved across
|
Resource limits are preserved across
|
||||||
.BR execve (2).
|
.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
|
One can set the resource limits of the shell using the built-in
|
||||||
.IR ulimit
|
.IR ulimit
|
||||||
command
|
command
|
||||||
|
|
Loading…
Reference in New Issue