desactivate history for the moment (it's broken)
[build-farm.git] / timelimit.c
index 6e43544cd0351b226269585e62862cdf271618b1..1d938073f0dbede38ecb01031ad55136a791f13c 100644 (file)
@@ -92,7 +92,9 @@ int main(int argc, char *argv[])
                int status;
                pid_t pid = wait(&status);
                if (pid != -1) {
-                       ret = WEXITSTATUS(status);
+                       if (WIFEXITED(status)) {
+                               ret = WEXITSTATUS(status);
+                       }
                } else if (errno == ECHILD) {
                        break;
                }