]> git.ipfire.org Git - thirdparty/util-linux.git/commit
renice: detect errors in arguments, add -v, -h and long options
authorLaMont Jones <lamont@debian.org>
Sun, 13 Jan 2008 05:35:50 +0000 (22:35 -0700)
committerKarel Zak <kzak@redhat.com>
Tue, 29 Jan 2008 14:31:47 +0000 (15:31 +0100)
commit628cab7cde49bfb0387a51d5390d65921d7c3dc4
tree8f6ec741f14a045c230c8996ae8a1134631551e8
parentbd0fb63d5f3ce081e6906e476aeb0fc408fa35c3
renice: detect errors in arguments, add -v, -h and long options

 * renice was using atoi(), which does no error detection, meaning
   that: "renice +20 blah" was accepted as valid.

 * add -h | --help

 * add -v | --version

 * add long options for -p, -u and -g

 * cleanup coding style

Addresses-Debian-Bug: #385245
Co-Author: Karel Zak <kzak@redhat.com>
Signed-off-by: LaMont Jones <lamont@debian.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/renice.1
sys-utils/renice.c