From 1baa65038888e3c02504fa1752af1424e7d75602 Mon Sep 17 00:00:00 2001 From: Zachary Anderson Date: Thu, 20 Oct 2016 07:47:26 -0700 Subject: [PATCH] Fuchsia: Fix eventhandler for changed syscall return Review URL: https://codereview.chromium.org/2433833005 . --- runtime/bin/eventhandler_fuchsia.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/bin/eventhandler_fuchsia.cc b/runtime/bin/eventhandler_fuchsia.cc index 2a611647f0b..ff03f14ab9e 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)); } }