diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-09-09 10:56:44 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-09-09 10:56:44 +0000 |
commit | 6d0a65561f740c23f0d164416218e5ab95c629b1 (patch) | |
tree | c5930b9b25bb09d691ea737765849d91de51eeaa /src/init/s6-linux-init-telinit.c | |
parent | 82c05711204ee4a997499386167a5e6b0b1d8fa2 (diff) | |
download | s6-linux-init-6d0a65561f740c23f0d164416218e5ab95c629b1.tar.xz |
Adapt to skalibs-2.14
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/init/s6-linux-init-telinit.c')
-rw-r--r-- | src/init/s6-linux-init-telinit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/init/s6-linux-init-telinit.c b/src/init/s6-linux-init-telinit.c index 1ad3f44..173451c 100644 --- a/src/init/s6-linux-init-telinit.c +++ b/src/init/s6-linux-init-telinit.c @@ -6,6 +6,7 @@ #include <skalibs/types.h> #include <skalibs/sgetopt.h> #include <skalibs/strerr.h> +#include <skalibs/cspawn.h> #include <skalibs/djbunix.h> #include <skalibs/exec.h> @@ -66,7 +67,7 @@ int main (int argc, char const *const *argv, char const *const *envp) if (!strcmp(argv[0], "0") || !strcmp(argv[0], "6")) { int wstat ; - pid_t pid = child_spawn0(newargv[0], newargv, envp) ; + pid_t pid = cspawn(newargv[0], newargv, envp, 0, 0, 0) ; if (!pid) strerr_diefu2sys(111, "spawn ", newargv[0]) ; if (wait_pid(pid, &wstat) < 0) strerr_diefu1sys(111, "wait_pid") ; if (WIFSIGNALED(wstat)) |