summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-09-09 10:48:16 +0000
committerLaurent Bercot <ska@appnovation.com>2023-09-09 10:48:16 +0000
commit2acd006bb0dc0b3e015ef358c94bf941a8feb6c8 (patch)
treea2393ff793eb01f5a1c93f434887c6c78ab86293 /src
parentc23083abd578f9ea824abbee5f4f09933b9df8ee (diff)
downloadmdevd-2acd006bb0dc0b3e015ef358c94bf941a8feb6c8.tar.xz
Adapt to skalibs-2.14
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r--src/mdevd/mdevd.c5
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 ;
}