commit e2750abe95ddc54bd601965af5c251a375abf4d7
parent 83ff4be27c6cfc226648048c76ca27d90c14deee
Author: Gerrit Pape <pape@smarden.org>
Date: Fri, 27 Sep 2002 10:22:32 +0000
minor.
Diffstat:
2 files changed, 5 insertions(+), 12 deletions(-)
diff --git a/src/runsvctrl.c b/src/runsvctrl.c
@@ -3,7 +3,7 @@
#include "error.h"
#include "open.h"
-#define USAGE " u|d|o|x|p|c|h|a|i|t|k service ..."
+#define USAGE " u|d|o|p|c|h|a|i|1|2|t|k|x service ..."
#define VERSION "$Id$"
@@ -55,17 +55,8 @@ int main(int argc, char **argv) {
if (! argv || ! *argv) usage();
switch ((c =**argv)) {
- case 'u':
- case 'd':
- case 'o':
- case 'x':
- case 'p':
- case 'c':
- case 'h':
- case 'a':
- case 'i':
- case 't':
- case 'k':
+ case 'u': case 'd': case 'o': case 'x': case 'p': case 'c': case 'h':
+ case 'a': case 'i': case 't': case 'k': case '1': case '2':
break;
default:
usage();
@@ -88,5 +79,6 @@ int main(int argc, char **argv) {
fatal("unable to change directory");
}
}
+ if (rc > 100) rc =100;
exit(rc);
}
diff --git a/src/runsvstat.c b/src/runsvstat.c
@@ -150,5 +150,6 @@ int main(int argc, char **argv) {
fatal("unable to change directory");
}
}
+ if (rc > 100) rc =100;
exit(rc);
}