mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:39:49 +00:00
Fuchsia: Fix eventhandler for changed syscall return
Review URL: https://codereview.chromium.org/2433833005 .
This commit is contained in:
parent
6beb1fdd11
commit
1baa650388
|
@ -75,9 +75,9 @@ void EventHandlerImplementation::HandleInterruptFd() {
|
|||
UNIMPLEMENTED();
|
||||
}
|
||||
}
|
||||
// status == ERR_BAD_STATE when we try to read and there are no messages
|
||||
// available, so it is an error if we get here and status != ERR_BAD_STATE.
|
||||
if (status != ERR_BAD_STATE) {
|
||||
// status == ERR_SHOULD_WAIT when we try to read and there are no messages
|
||||
// available, so it is an error if we get here and status != ERR_SHOULD_WAIT.
|
||||
if (status != ERR_SHOULD_WAIT) {
|
||||
FATAL1("mx_msgpipe_read failed: %s\n", mx_status_get_string(status));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue