aboutsummaryrefslogtreecommitdiffstats
path: root/man2
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-11-28 06:56:18 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-11-28 06:56:18 +0100
commit268c281777066e940ad032ea000dd1aa82bdeb13 (patch)
tree89be32e5c69ad5330fd2dd45bfe04fb37ea491ef /man2
parenta6bdf7ee8dc409f52219eac1f8162258e61d1642 (diff)
downloadman-pages-268c281777066e940ad032ea000dd1aa82bdeb13.tar.gz
getpriority.2: Expand discussion of getpriority() return value
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2')
-rw-r--r--man2/getpriority.28
1 files changed, 7 insertions, 1 deletions
diff --git a/man2/getpriority.2 b/man2/getpriority.2
index 8f9754ffd0..4a1ff91a9d 100644
--- a/man2/getpriority.2
+++ b/man2/getpriority.2
@@ -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