diff options
-rw-r--r-- | src/execline/backtick.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/execline/backtick.c b/src/execline/backtick.c index 3928f90..844882b 100644 --- a/src/execline/backtick.c +++ b/src/execline/backtick.c @@ -55,7 +55,7 @@ int main (int argc, char const **argv, char const *const *envp) close(fdwstat) ; if (wait_pid(pid, &fdwstat) < 0) strerr_diefu1sys(111, "wait_pid") ; - if (WIFSIGNALED(fdwstat) || WEXITSTATUS(fdwstat)) + if (wait_status(fdwstat)) { if (insist) if (WIFSIGNALED(fdwstat)) strerr_dief1x(111, "child process crashed") ; |