diff options
author | Gerrit Pape <pape@smarden.org> | 2002-09-27 10:22:32 +0000 |
---|---|---|
committer | Gerrit Pape <pape@smarden.org> | 2002-09-27 10:22:32 +0000 |
commit | f8e69131659032801fac9a99a31d493851f1ac18 (patch) | |
tree | 707c6dfb72f0ee97dc4d8f1aa51ac8da7c44b0e5 /src | |
parent | 26e15f0f27396de9391ae188cb5551e0004cd2d5 (diff) | |
download | runit-f8e69131659032801fac9a99a31d493851f1ac18.tar.gz runit-f8e69131659032801fac9a99a31d493851f1ac18.tar.xz runit-f8e69131659032801fac9a99a31d493851f1ac18.zip |
minor.
Diffstat (limited to 'src')
-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); } |