From e558ec49d73e13f4366f117c4515abe28867b312 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 27 Jan 2015 01:47:05 +0000 Subject: Not getting rid of wait_status today... --- src/execline/backtick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") ; -- cgit v1.2.3