From d17de8336c0735aa8ac4462a6a4f11f318dd8172 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 5 Dec 2016 08:10:29 +0100 Subject: [PATCH] getrlimit.2: Describe the range of the RLIMIT_NICE limit 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 e80a6e32f..f6bf9c825 100644 --- a/man2/getrlimit.2 +++ b/man2/getrlimit.2 @@ -293,6 +293,9 @@ or .BR nice (2). The actual ceiling for the nice value is calculated as .IR "20\ \-\ rlim_cur" . +The useful range for this limit is thus from 1 +(corresponding to a nice value of 19) to 40 +(corresponding to a nice value of -20). (This strangeness occurs because negative numbers cannot be specified as resource limit values, since they typically have special meanings. For example,