mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:39:49 +00:00
[ 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:
parent
6f8ce20c99
commit
a3815b6590
|
@ -231,6 +231,8 @@ class ExitCodeHandler {
|
|||
process_count_--;
|
||||
}
|
||||
}
|
||||
} else if (pid < 0) {
|
||||
FATAL1("Wait for process exit failed: %d", errno);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -231,6 +231,8 @@ class ExitCodeHandler {
|
|||
process_count_--;
|
||||
}
|
||||
}
|
||||
} else if (pid < 0) {
|
||||
FATAL1("Wait for process exit failed: %d", errno);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -227,6 +227,8 @@ class ExitCodeHandler {
|
|||
process_count_--;
|
||||
}
|
||||
}
|
||||
} else if (pid < 0) {
|
||||
FATAL1("Wait for process exit failed: %d", errno);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue