From 4d9db1bd57b1a343effe3418a814fcd99aa99346 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 27 Nov 2016 16:00:43 +0100 Subject: [PATCH] nice.2: Clarify the range of the nice value, and note that it is clamped Signed-off-by: Michael Kerrisk --- man2/nice.2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/man2/nice.2 b/man2/nice.2 index 7bbab1e91..211e196fe 100644 --- a/man2/nice.2 +++ b/man2/nice.2 @@ -53,8 +53,9 @@ to the nice value for the calling process. (A higher nice value means a low priority.) Only the super\%user may specify a negative increment, or priority increase. -The range for nice values is described in -.BR getpriority (2). + +The range of the nice value is +19 (low priority) to \-20 (high priority). +Attempts to set a nice value outside the range are clamped to the range. .SH RETURN VALUE On success, the new nice value is returned (but see NOTES below). On error, \-1 is returned, and