From 700701789a8008395530272d82ebc9b50285af2e Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 7 Apr 2023 14:55:23 +0000 Subject: bugfix: selfpipe_trap error path in s6-maximumtime Signed-off-by: Laurent Bercot --- src/s6-portable-utils/s6-maximumtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/s6-portable-utils/s6-maximumtime.c b/src/s6-portable-utils/s6-maximumtime.c index 4da7e89..8605b8b 100644 --- a/src/s6-portable-utils/s6-maximumtime.c +++ b/src/s6-portable-utils/s6-maximumtime.c @@ -56,7 +56,7 @@ int main (int argc, char const *const *argv, char const *const *envp) x[0].fd = selfpipe_init() ; if (x[0].fd < 0) strerr_diefu1sys(111, "selfpipe_init") ; - if (selfpipe_trap(SIGCHLD) < 0) strerr_diefu1sys(111, "selfpipe_trap") ; + if (!selfpipe_trap(SIGCHLD)) strerr_diefu1sys(111, "selfpipe_trap") ; pid = child_spawn0(argv[1], argv+1, envp) ; if (!pid) strerr_diefu2sys(111, "spawn ", argv[1]) ; -- cgit v1.2.3