From 6d0a65561f740c23f0d164416218e5ab95c629b1 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 9 Sep 2023 10:56:44 +0000 Subject: Adapt to skalibs-2.14 Signed-off-by: Laurent Bercot --- src/shutdown/s6-linux-init-shutdownd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/shutdown/s6-linux-init-shutdownd.c') diff --git a/src/shutdown/s6-linux-init-shutdownd.c b/src/shutdown/s6-linux-init-shutdownd.c index b53042e..5a17625 100644 --- a/src/shutdown/s6-linux-init-shutdownd.c +++ b/src/shutdown/s6-linux-init-shutdownd.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -78,7 +79,7 @@ static inline void run_stage3 (char const *basedir) char const *stage3_argv[2] = { stage3, 0 } ; memcpy(stage3, basedir, basedirlen) ; memcpy(stage3 + basedirlen, "/scripts/" STAGE3, sizeof("/scripts/" STAGE3)) ; - pid = child_spawn0(stage3_argv[0], stage3_argv, (char const *const *)environ) ; + pid = cspawn(stage3_argv[0], stage3_argv, (char const *const *)environ, CSPAWN_FLAGS_SIGBLOCKNONE, 0, 0) ; if (pid) { int wstat ; -- cgit v1.3.1