]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
getpriority.2: Expand discussion of getpriority() return value
authorMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 28 Nov 2016 05:56:18 +0000 (06:56 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 28 Nov 2016 05:56:18 +0000 (06:56 +0100)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/getpriority.2

index 8f9754ffd0348b5505041d0ccb62127068e6ca90..4a1ff91a9d6ca95ef29eeef7d36051c65a8e6a3a 100644 (file)
@@ -118,7 +118,13 @@ soft limit; see
 .BR getrlimit (2)
 for details.
 .SH RETURN VALUE
-Since
+On success,
+.BR getpriority ()
+returns the calling thread's nice value, which may be a negative number.
+On error, it returns \-1 and sets
+.I errno
+to indicate the cause of the error.
+Since a successful call to
 .BR getpriority ()
 can legitimately return the value \-1, it is necessary
 to clear the external variable