Index: runtime/bin/eventhandler_fuchsia.cc |
diff --git a/runtime/bin/eventhandler_fuchsia.cc b/runtime/bin/eventhandler_fuchsia.cc |
index 2a611647f0bf13e0442d3ecf6c2d71b5674ef8e9..ff03f14ab9e9f756a9efff034b89e54dc3859d4e 100644 |
--- a/runtime/bin/eventhandler_fuchsia.cc |
+++ b/runtime/bin/eventhandler_fuchsia.cc |
@@ -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)); |
} |
} |