diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2026-03-18 12:23:41 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2026-03-18 12:23:41 +0000 |
| commit | e296c0405b813f4d19ae7efaf6eb1b4117b1e333 (patch) | |
| tree | f3aa5282f817b68471d93e9f7be2b40500e52c68 /src/supervision/s6-svwait.c | |
| parent | 9e63925306dd86243c13becd93ab6d211c9b5010 (diff) | |
| parent | 6a00734ff583507e906ded535eb6ac6a01a2ecec (diff) | |
| download | s6-e296c0405b813f4d19ae7efaf6eb1b4117b1e333.tar.gz | |
Merge branch '2.15.0.0'
Diffstat (limited to 'src/supervision/s6-svwait.c')
| -rw-r--r-- | src/supervision/s6-svwait.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/supervision/s6-svwait.c b/src/supervision/s6-svwait.c index 78f5c3f..ca0fd35 100644 --- a/src/supervision/s6-svwait.c +++ b/src/supervision/s6-svwait.c @@ -2,6 +2,7 @@ #include <stdint.h> #include <signal.h> +#include <unistd.h> #include <skalibs/sgetopt.h> #include <skalibs/types.h> @@ -52,7 +53,7 @@ int main (int argc, char const *const *argv) { s6_svlisten_t foo = S6_SVLISTEN_ZERO ; unsigned int e ; - uint16_t ids[argc] ; + uint32_t ids[argc] ; unsigned char upstate[bitarray_div8(argc)] ; unsigned char readystate[bitarray_div8(argc)] ; if (!sig_ignore(SIGPIPE)) strerr_diefu1sys(111, "ignore SIGPIPE") ; @@ -66,5 +67,5 @@ int main (int argc, char const *const *argv) e = s6_svlisten_loop(&foo, wantup, wantready, or, &deadline, -1, 0) ; if (e) strerr_dief1x(e, "some services reported permanent failure or their supervisor died") ; } - return 0 ; + _exit(0) ; } |
