Index: runtime/bin/socket_linux.cc |
diff --git a/runtime/bin/socket_linux.cc b/runtime/bin/socket_linux.cc |
index 13543002f4baae0b5129afc98f99f908655cf11f..c6e1fe1a885298ce14ab11e6416deb64d4c82ecd 100644 |
--- a/runtime/bin/socket_linux.cc |
+++ b/runtime/bin/socket_linux.cc |
@@ -181,7 +181,7 @@ void Socket::GetError(intptr_t fd, OSError* os_error) { |
int Socket::GetType(intptr_t fd) { |
struct stat64 buf; |
- int result = NO_RETRY_EXPECTED(fstat64(fd, &buf)); |
+ int result = TEMP_FAILURE_RETRY(fstat64(fd, &buf)); |
if (result == -1) return -1; |
if (S_ISCHR(buf.st_mode)) return File::kTerminal; |
if (S_ISFIFO(buf.st_mode)) return File::kPipe; |