Index: runtime/platform/signal_blocker.h |
diff --git a/runtime/platform/signal_blocker.h b/runtime/platform/signal_blocker.h |
index 4ce4b712f6ed9d4f0469098179656186150af460..a9834efcadc4d83ccfeb3bc0debcd6e9c80ed7f4 100644 |
--- a/runtime/platform/signal_blocker.h |
+++ b/runtime/platform/signal_blocker.h |
@@ -73,7 +73,9 @@ class ThreadSignalBlocker { |
// was expected to not return EINTR, but did it anyway. |
#define NO_RETRY_EXPECTED(expression) \ |
({ intptr_t __result = (expression); \ |
- ASSERT(__result != -1L || errno != EINTR); \ |
+ if (__result == -1L && errno == EINTR) { \ |
+ FATAL("Unexpected EINTR errno"); \ |
+ } \ |
__result; }) |
#define VOID_NO_RETRY_EXPECTED(expression) \ |