diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-04-07 14:55:23 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-04-07 14:55:23 +0000 |
commit | 700701789a8008395530272d82ebc9b50285af2e (patch) | |
tree | f41cd8258913ce59f66be7185e98178b8193c816 /src | |
parent | 68b0b18f883ac74240b1e00380ce7c4659112474 (diff) | |
download | s6-portable-utils-700701789a8008395530272d82ebc9b50285af2e.tar.xz |
bugfix: selfpipe_trap error path in s6-maximumtime
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/s6-portable-utils/s6-maximumtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]) ; |