summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-01-27 01:47:05 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-01-27 01:47:05 +0000
commite558ec49d73e13f4366f117c4515abe28867b312 (patch)
tree16bd8208df6414243635d4b69a685cc4afa5a003
parenta1f847eae994d665d01b85b0fd1a69492455f3ec (diff)
downloadexecline-e558ec49d73e13f4366f117c4515abe28867b312.tar.gz
execline-e558ec49d73e13f4366f117c4515abe28867b312.tar.xz
execline-e558ec49d73e13f4366f117c4515abe28867b312.zip
Not getting rid of wait_status today...
-rw-r--r--src/execline/backtick.c2
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") ;