getpriority.2: Improve description of setpriority() return value

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-11-28 06:53:50 +01:00
parent 2be50a325d
commit a6bdf7ee8d
1 changed files with 5 additions and 3 deletions

View File

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