From b0da8f8548fb299a1e7fa6ae6c6e6f5efbe86590 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 9 Sep 2023 11:44:53 +0000 Subject: Adapt to skalibs-2.14 Signed-off-by: Laurent Bercot --- src/s6-portable-utils/s6-maximumtime.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 #include #include +#include #include #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) ; -- cgit v1.2.3