diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-02-06 17:05:58 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-02-06 17:05:58 +0000 |
commit | 569d62e332c5d49c07fe4db4723a54591f6f7c58 (patch) | |
tree | a5b2b9315e9d80ac616537df6754c4a2d803b8e6 /src/supervision/s6-svc.c | |
parent | 92124defa008812c37a92c700eee67f04e259111 (diff) | |
download | s6-569d62e332c5d49c07fe4db4723a54591f6f7c58.tar.xz |
Add s6-svc -Q
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/supervision/s6-svc.c')
-rw-r--r-- | src/supervision/s6-svc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/supervision/s6-svc.c b/src/supervision/s6-svc.c index 4485248..1586056 100644 --- a/src/supervision/s6-svc.c +++ b/src/supervision/s6-svc.c @@ -13,7 +13,7 @@ #include <s6/config.h> #include <s6/supervise.h> -#define USAGE "s6-svc [ -wu | -wU | -wd | -wD | -wr | -wR ] [ -T timeout ] [ -abqhkti12pcyroduDUxO ] servicedir" +#define USAGE "s6-svc [ -wu | -wU | -wd | -wD | -wr | -wR ] [ -T timeout ] [ -abqhkti12pcyroduDUxOQ ] servicedir" #define dieusage() strerr_dieusage(100, USAGE) #define DATASIZE 63 @@ -30,7 +30,7 @@ int main (int argc, char const *const *argv) subgetopt l = SUBGETOPT_ZERO ; for (;;) { - int opt = subgetopt_r(argc, argv, "abqhkti12pcyroduDUxOT:w:", &l) ; + int opt = subgetopt_r(argc, argv, "abqhkti12pcyroduDUxOQT:w:", &l) ; if (opt == -1) break ; switch (opt) { @@ -54,6 +54,7 @@ int main (int argc, char const *const *argv) case 'U' : case 'x' : case 'O' : + case 'Q' : { if (datalen >= DATASIZE) strerr_dief1x(100, "too many commands") ; data[datalen++] = opt ; |