[ VM ] Fix issue where ExitCodeHandlerEntry could get stuck in an

infinite loop if wait(...) returned an error

Fixes https://github.com/dart-lang/sdk/issues/41978

Change-Id: Ied4cc53dcfbbb6e04179721a00f04a8cd0ef9f29
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155282
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
This commit is contained in:
Ben Konyi 2020-07-22 03:45:35 +00:00 committed by commit-bot@chromium.org
parent 6f8ce20c99
commit a3815b6590
3 changed files with 6 additions and 0 deletions

View file

@ -231,6 +231,8 @@ class ExitCodeHandler {
process_count_--;
}
}
} else if (pid < 0) {
FATAL1("Wait for process exit failed: %d", errno);
}
}
}

View file

@ -231,6 +231,8 @@ class ExitCodeHandler {
process_count_--;
}
}
} else if (pid < 0) {
FATAL1("Wait for process exit failed: %d", errno);
}
}
}

View file

@ -227,6 +227,8 @@ class ExitCodeHandler {
process_count_--;
}
}
} else if (pid < 0) {
FATAL1("Wait for process exit failed: %d", errno);
}
}
}