diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-09-09 10:48:16 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-09-09 10:48:16 +0000 |
commit | 2acd006bb0dc0b3e015ef358c94bf941a8feb6c8 (patch) | |
tree | a2393ff793eb01f5a1c93f434887c6c78ab86293 | |
parent | c23083abd578f9ea824abbee5f4f09933b9df8ee (diff) | |
download | mdevd-2acd006bb0dc0b3e015ef358c94bf941a8feb6c8.tar.gz mdevd-2acd006bb0dc0b3e015ef358c94bf941a8feb6c8.tar.xz mdevd-2acd006bb0dc0b3e015ef358c94bf941a8feb6c8.zip |
Adapt to skalibs-2.14
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r-- | src/mdevd/mdevd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mdevd/mdevd.c b/src/mdevd/mdevd.c index 906ecaf..b7e9665 100644 --- a/src/mdevd/mdevd.c +++ b/src/mdevd/mdevd.c @@ -33,6 +33,7 @@ #include <skalibs/selfpipe.h> #include <skalibs/tai.h> #include <skalibs/env.h> +#include <skalibs/cspawn.h> #include <skalibs/djbunix.h> #include <skalibs/iopause.h> #include <skalibs/socket.h> @@ -566,7 +567,7 @@ static inline void spawn_command (char const *command, struct uevent_s const *ev if (verbosity) strerr_warnwu1sys("merge environment to spawn command") ; return ; } - ud->pid = child_spawn0(argv[0], argv, envp) ; + ud->pid = cspawn(argv[0], argv, envp, CSPAWN_FLAGS_SELFPIPE_FINISH, 0, 0) ; if (!ud->pid) { if (verbosity) strerr_warnwu2sys("spawn ", argv[0]) ; @@ -1009,7 +1010,7 @@ int main (int argc, char const *const *argv) { char const *cargv[2] = { MDEVD_BINPREFIX "mdevd-coldplug", 0 } ; char const *cenv = 0 ; - if (!child_spawn0(cargv[0], cargv, &cenv)) + if (!cspawn(cargv[0], cargv, &cenv, CSPAWN_FLAGS_SELFPIPE_FINISH, 0, 0)) strerr_warnwu2sys("spawn ", cargv[0]) ; docoldplug = 0 ; } |