summaryrefslogtreecommitdiffstats
path: root/usr.bin/renice
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2003-02-26 20:27:24 +0000
committercharnier <charnier@FreeBSD.org>2003-02-26 20:27:24 +0000
commit037412ba788b03f51dd590b7b9a43444fcce94bd (patch)
treeae94fd99aab3e017f757556f614b1f29a6a59d36 /usr.bin/renice
parent2800385f671fa2728098568f997c6b260e1d4f12 (diff)
downloadFreeBSD-src-037412ba788b03f51dd590b7b9a43444fcce94bd.zip
FreeBSD-src-037412ba788b03f51dd590b7b9a43444fcce94bd.tar.gz
The usage string: renice [priority | [-n incr]] ... assumed that the part
`priority | [-n incr]' was optionnal which is wrong according to the code. Add FreeBSD Id. Reviewed by: maxim
Diffstat (limited to 'usr.bin/renice')
-rw-r--r--usr.bin/renice/renice.87
-rw-r--r--usr.bin/renice/renice.c13
2 files changed, 13 insertions, 7 deletions
diff --git a/usr.bin/renice/renice.8 b/usr.bin/renice/renice.8
index e207476..4420d8e 100644
--- a/usr.bin/renice/renice.8
+++ b/usr.bin/renice/renice.8
@@ -40,7 +40,12 @@
.Nd alter priority of running processes
.Sh SYNOPSIS
.Nm
-.Op Ar priority | Op Fl n Ar increment
+.Ar priority
+.Op Oo Fl p Oc Ar pid ...
+.Op Oo Fl g Oc Ar pgrp ...
+.Op Oo Fl u Oc Ar user ...
+.Nm
+.Fl n Ar increment
.Op Oo Fl p Oc Ar pid ...
.Op Oo Fl g Oc Ar pgrp ...
.Op Oo Fl u Oc Ar user ...
diff --git a/usr.bin/renice/renice.c b/usr.bin/renice/renice.c
index f9e7d9c..333f4cd 100644
--- a/usr.bin/renice/renice.c
+++ b/usr.bin/renice/renice.c
@@ -37,13 +37,14 @@ static const char copyright[] =
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
-#ifndef lint
#if 0
+#ifndef lint
static char sccsid[] = "@(#)renice.c 8.1 (Berkeley) 6/9/93";
-#endif
-static const char rcsid[] =
- "$FreeBSD$";
#endif /* not lint */
+#endif
+
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <sys/time.h>
@@ -179,7 +180,7 @@ static void
usage()
{
fprintf(stderr, "%s\n%s\n",
-"usage: renice [priority | [-n incr]] [[-p] pid ...] [[-g] pgrp ...]",
-" [[-u] user ...]");
+"usage: renice priority [[-p] pid ...] [[-g] pgrp ...] [[-u] user ...]",
+" renice -n increment [[-p] pid ...] [[-g] pgrp ...] [[-u] user ...]");
exit(1);
}
OpenPOWER on IntegriCloud