From 40fcb004f07f568fe9d8bf7a26dbc2b0e24d7587 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 27 Nov 2016 15:55:51 +0100 Subject: [PATCH] getpriority.2: The nice value supplied to setpriority() is clamped Note that the nice value supplied to setpriority() is clamped to the permitted range. Signed-off-by: Michael Kerrisk --- man2/getpriority.2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man2/getpriority.2 b/man2/getpriority.2 index 4a1ff91a9..9acd5df88 100644 --- a/man2/getpriority.2 +++ b/man2/getpriority.2 @@ -93,8 +93,8 @@ calling process, or the real user ID of the calling process. The .I prio -argument is a value in the range \-20 to +19, -with \-20 being the highest priority and +19 being the lowest priority. +argument is a value in the range \-20 to 19 (but see NOTES below). +with \-20 being the highest priority and 19 being the lowest priority. Attempts to set a priority outside this range are silently clamped to the range. The default priority is 0;