aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-07-02 00:36:43 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-07-02 00:36:43 +0200
commitb8bc577b896e4db7ce0f8f1bdb6f9eb776b79f1a (patch)
treed0bedae336773ab23678f459fd4df59a658988a4
parent653c1fe2e2fa0a222eba8951cdfb7644724c73c6 (diff)
downloadman-pages-b8bc577b896e4db7ce0f8f1bdb6f9eb776b79f1a.tar.gz
getpriority.2: Clarify equivalence between lower nice value and higher priority
Reported-by: Robin Kuzmin <kuzmin.robin@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/getpriority.27
1 files changed, 5 insertions, 2 deletions
diff --git a/man2/getpriority.2 b/man2/getpriority.2
index ecbef057fb..619956f5c3 100644
--- a/man2/getpriority.2
+++ b/man2/getpriority.2
@@ -90,11 +90,13 @@ A zero value for
.I who
denotes (respectively) the calling process, the process group of the
calling process, or the real user ID of the calling process.
+
The
.I prio
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.
The default priority is 0;
-lower priorities cause more favorable scheduling.
+lower values give a process a higher scheduling priority.
The
.BR getpriority ()
@@ -140,7 +142,8 @@ In addition to the errors indicated above,
may fail if:
.TP
.B EACCES
-The caller attempted to lower a process priority, but did not
+The caller attempted to set a lower nice value
+(i.e., a higher process priority), but did not
have the required privilege (on Linux: did not have the
.B CAP_SYS_NICE
capability).