diff options
-rw-r--r-- | src/runsvctrl.c | 16 | ||||
-rw-r--r-- | src/runsvstat.c | 1 |
2 files changed, 5 insertions, 12 deletions
diff --git a/src/runsvctrl.c b/src/runsvctrl.c index 3f458c4..a71578b 100644 --- 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 index 16a1f0b..5c8e60d 100644 --- 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); } |