sbase/nice.1
FRIGN c01641c897 Audit nice(1)
1) val is sufficient as "int" (read the standard)
2) BUGFIX: If getpriority fails, it returns -1 and sets errno.
   Previously, it would correctly catch the errno but not take
   care of the fact that by then val has been decremented by 1.
   Only change val if the getpriority-call has been successful.
3) Add LIMIT()-macro from st to increase readability.
4) setpriority returns < 0 on failure
5) Remove bikeshedding-comment. Read the standard if you wonder.
6) return-value trick from env(1)
2015-03-02 16:53:13 +01:00

41 lines
564 B
Groff

.Dd March 1, 2015
.Dt NICE 1
.Os sbase
.Sh NAME
.Nm nice
.Nd run command with altered niceness
.Sh SYNOPSIS
.Nm
.Op Fl n Ar inc
.Ar cmd
.Op Ar arg ...
.Sh DESCRIPTION
.Nm
runs
.Ar cmd
with the current niceness plus
.Ar inc .
A negative niceness is reserved to the superuser.
.Sh OPTIONS
.Bl -tag -width Ds
.It Fl n Ar inc
Change niceness by
.Ar inc ,
ranging from
.Sy -20
(highest priority)
to
.Sy +20
(lowest priority).
Default is 10.
.El
.Sh SEE ALSO
.Xr nice 2 ,
.Xr renice 2
.Sh STANDARDS
The
.Nm
utility is compliant with the
.St -p1003.1-2008
specification.