diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-09-09 04:35:20 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-09-09 04:35:20 +0000 |
commit | 1f592173a28907dadfb75132e1eb25dfe4fb3a94 (patch) | |
tree | 1759ad59cf444b3c151aa2af185a96b1891ae477 /src/supervision/s6-notifyoncheck.c | |
parent | 8f0980665c368c06adb46a1fddb6790e945c7c51 (diff) | |
download | s6-1f592173a28907dadfb75132e1eb25dfe4fb3a94.tar.xz |
Adapt to skalibs-2.14
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/supervision/s6-notifyoncheck.c')
-rw-r--r-- | src/supervision/s6-notifyoncheck.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/supervision/s6-notifyoncheck.c b/src/supervision/s6-notifyoncheck.c index 592502c..8c139af 100644 --- a/src/supervision/s6-notifyoncheck.c +++ b/src/supervision/s6-notifyoncheck.c @@ -13,6 +13,7 @@ #include <skalibs/sgetopt.h> #include <skalibs/strerr.h> #include <skalibs/tai.h> +#include <skalibs/cspawn.h> #include <skalibs/djbunix.h> #include <skalibs/selfpipe.h> #include <skalibs/iopause.h> @@ -230,7 +231,7 @@ int main (int argc, char const *const *argv, char const *const *envp) if (handle_event(&a, id, 0)) return 2 ; } - pid = child_spawn0(childargv[0], childargv, envp) ; + pid = cspawn(childargv[0], childargv, envp, CSPAWN_FLAGS_SELFPIPE_FINISH, 0, 0) ; if (!pid) { strerr_warnwu2sys("spawn ", childargv[0]) ; |