]> git.ipfire.org Git - thirdparty/coreutils.git/commit
(GET_NICE_VALUE): Renamed from GET_PRIORITY.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 26 Jul 2004 06:08:50 +0000 (06:08 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 26 Jul 2004 06:08:50 +0000 (06:08 +0000)
commit218f93ec2c12f0b11f6cc29711c00d84631a3dc7
tree6a0b20e652fd3aa68a6b499aa89dbcdb8562f509
parentb41eb892eab91edda4a94d3b30975bcb20f15bc4
(GET_NICE_VALUE): Renamed from GET_PRIORITY.
All uses changed.
(NZERO): New macro, if system doesn't define it already.
(usage): Distinguish priorities from nice values.
Don't assume NZERO is 20.
(main): Use bool instead of int where appropriate.
If user specifies an adjustment out of range, always truncate it
to an inrange value instead of sometimes giving an error message
and sometimes not.
Do not assume that -1 is an error return from "nice" or
"getpriority", as it might be the current nice value minus NZERO.
If nice/setpriority fails with errno == EPERM, go ahead and run
the command anyway; POSIX requires this.
src/nice.c