nice.2: Clarify the range of the nice value, and note that it is clamped

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-11-27 16:00:43 +01:00
parent 26ea000d10
commit 4d9db1bd57
1 changed files with 3 additions and 2 deletions

View File

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