Match the reality. The man page was completely wrong.

This commit is contained in:
Wolfram Schneider 1996-11-02 22:02:32 +00:00
parent 232c762e37
commit 459142187a

View file

@ -1,7 +1,6 @@
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
@ -31,6 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)nice.1 8.1 (Berkeley) 6/6/93
.\" $Id$
.\"
.Dd June 6, 1993
.Dt NICE 1
@ -51,25 +51,46 @@ at a low priority.
(Think of low and slow).
If
.Fl Ns Ar number
is specified, and if it is greater than or equal
to 10 (the default),
.Nm nice
is not given
.Nm
assumed the value 10.
The priority is a value in the range -20 to 20. The default priority
is 0, priority 20 is the lowest possible.
.Nm Nice
will execute
.Ar command
at that priority.
The upper bound, or lowest priority that
.Nm nice
will run a command is 20.
The lower bounds or
higher priorities (integers less than 10)
can only be requested by the super-user.
at priority
.Ar number
relative to the priority
of
.Nm nice .
Higher priorities than the
current process priority can only requested by the
super-user.
Negative numbers are expressed as
.Fl - Ns Ar number .
.Pp
The returned exit status is the exit value from the
command executed by
.Nm nice .
.Sh EXAMPLES
.Pp
$ nice -5 date
.Pp
Execute command
.Sq date
at priority 5 assuming the priority of the
shell is 0.
.Pp
# nice -16 nice --35 date
.Pp
Execute command
.Sq date
at priority -19 assuming the priority of the
shell is 0 and you are the super-user.
.Sh SEE ALSO
.Xr getpriority 2 ,
.Xr setpriority 2 ,
.Xr csh 1 ,
.Xr renice 8
.Sh HISTORY