From a6bdf7ee8dc409f52219eac1f8162258e61d1642 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 28 Nov 2016 06:53:50 +0100 Subject: [PATCH] getpriority.2: Improve description of setpriority() return value Signed-off-by: Michael Kerrisk --- man2/getpriority.2 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/man2/getpriority.2 b/man2/getpriority.2 index 34f968b93..8f9754ffd 100644 --- a/man2/getpriority.2 +++ b/man2/getpriority.2 @@ -126,10 +126,12 @@ to clear the external variable prior to the call, then check it afterward to determine if \-1 is an error or a legitimate value. -The + .BR setpriority () -call returns 0 if there is no error, or -\-1 if there is. +returns 0 on success. +On error, it returns \-1 and sets +.I errno +to indicate the cause of the error. .SH ERRORS .TP .B EINVAL