]> git.pld-linux.org Git - packages/bash.git/commitdiff
- test fix (check errno only if waitpid returns error)
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 3 Jun 2005 11:32:38 +0000 (11:32 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bash-WCONTINUED.patch -> 1.2

bash-WCONTINUED.patch

index a51901eea9718d75c20d249f53f5673c977aa43d..5d18ef24ce81f05e4f80b1da98c67e56a3472952 100644 (file)
@@ -16,7 +16,7 @@
 +      if (wcontinued_not_supported)
 +      waitpid_flags &= ~WCONTINUED;
        pid = WAITPID (-1, &status, waitpid_flags);
-+      if (errno == EINVAL)
++      if ((pid == -1) && (errno == EINVAL))
 +      {
 +        wcontinued_not_supported = 1;
 +        goto retry;
This page took 0.043067 seconds and 4 git commands to generate.