From 1f592173a28907dadfb75132e1eb25dfe4fb3a94 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 9 Sep 2023 04:35:20 +0000 Subject: Adapt to skalibs-2.14 Signed-off-by: Laurent Bercot --- src/supervision/s6-notifyoncheck.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/supervision/s6-notifyoncheck.c') 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 #include #include +#include #include #include #include @@ -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]) ; -- cgit v1.3.1