On error, \-1 is returned, and
.I errno
is set appropriately.
+
+A successful call can legitimately return \-1.
+To detect an error, set
+.I errno
+to 0 before the call, and check whether it is nonzero after
+.BR nice ()
+returns \-1.
.SH ERRORS
.TP
.B EPERM
wrapper function provided by glibc provides conformance to POSIX.1 by calling
.BR getpriority (2)
to obtain the new nice value, which is then returned to the caller.
-With this implementation,
-a successful call can legitimately return \-1.
-To reliably detect an error, set
-.I errno
-to 0 before the call, and check its value when
-.BR nice ()
-returns \-1.
.SH SEE ALSO
.BR nice (1),
.BR renice (1),