about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-09-09 11:44:53 +0000
committerLaurent Bercot <ska@appnovation.com>2023-09-09 11:44:53 +0000
commitb0da8f8548fb299a1e7fa6ae6c6e6f5efbe86590 (patch)
tree462238b602a9b86a274a6d33f7aef0edf8adf957
parent3d968c82db0ffd6edacda7632f7fd544039374d7 (diff)
downloads6-portable-utils-b0da8f8548fb299a1e7fa6ae6c6e6f5efbe86590.tar.gz
s6-portable-utils-b0da8f8548fb299a1e7fa6ae6c6e6f5efbe86590.tar.xz
s6-portable-utils-b0da8f8548fb299a1e7fa6ae6c6e6f5efbe86590.zip
Adapt to skalibs-2.14
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--src/s6-portable-utils/s6-maximumtime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/s6-portable-utils/s6-maximumtime.c b/src/s6-portable-utils/s6-maximumtime.c
index 8605b8b..fb6936f 100644
--- a/src/s6-portable-utils/s6-maximumtime.c
+++ b/src/s6-portable-utils/s6-maximumtime.c
@@ -13,6 +13,7 @@
 #include <skalibs/iopause.h>
 #include <skalibs/selfpipe.h>
 #include <skalibs/strerr.h>
+#include <skalibs/cspawn.h>
 #include <skalibs/djbunix.h>
 
 #define USAGE "s6-maximumtime [ -0 | -a | -b | -i | -k | -q | -t | -x | -1 | -2 ] milliseconds prog..."
@@ -58,7 +59,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
   
   if (!selfpipe_trap(SIGCHLD)) strerr_diefu1sys(111, "selfpipe_trap") ;
 
-  pid = child_spawn0(argv[1], argv+1, envp) ;
+  pid = cspawn(argv[1], argv+1, envp, CSPAWN_FLAGS_SELFPIPE_FINISH, 0, 0) ;
   if (!pid) strerr_diefu2sys(111, "spawn ", argv[1]) ;
   tain_now_set_stopwatch_g() ;
   tain_add_g(&deadline, &deadline) ;