diff options
author | LaMont Jones | 2008-01-13 06:35:50 +0100 |
---|---|---|
committer | Karel Zak | 2008-01-29 15:31:47 +0100 |
commit | 628cab7cde49bfb0387a51d5390d65921d7c3dc4 (patch) | |
tree | 8f6ec741f14a045c230c8996ae8a1134631551e8 /sys-utils/renice.1 | |
parent | kill: man page is missing a description of "kill -0" (diff) | |
download | kernel-qcow2-util-linux-628cab7cde49bfb0387a51d5390d65921d7c3dc4.tar.gz kernel-qcow2-util-linux-628cab7cde49bfb0387a51d5390d65921d7c3dc4.tar.xz kernel-qcow2-util-linux-628cab7cde49bfb0387a51d5390d65921d7c3dc4.zip |
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>
Diffstat (limited to 'sys-utils/renice.1')
-rw-r--r-- | sys-utils/renice.1 | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sys-utils/renice.1 b/sys-utils/renice.1 index 06462e8ee..3c20d6eb6 100644 --- a/sys-utils/renice.1 +++ b/sys-utils/renice.1 @@ -52,6 +52,8 @@ .Op Fl u .Ar user ... .Oc +.Nm renice +.Ad Fl h | Fl v .Sh DESCRIPTION .Nm Renice alters the @@ -72,18 +74,22 @@ their process ID's. Options supported by .Nm renice : .Bl -tag -width Ds -.It Fl g +.It Fl g, Fl Fl pgrp Force .Ar who parameters to be interpreted as process group ID's. -.It Fl u +.It Fl u, Fl Fl user Force the .Ar who parameters to be interpreted as user names. -.It Fl p +.It Fl p, Fl Fl pid Resets the .Ar who interpretation to be (the default) process ID's. +.It Fl v, Fl Fl version +Print version. +.It Fl h, Fl Fl help +Print help. .El .Pp For example, |