Index: runtime/bin/file_linux.cc |
diff --git a/runtime/bin/file_linux.cc b/runtime/bin/file_linux.cc |
index 194a93f20e376c41bf096f24589d5253db0d4062..3c421cee0622a7bc4b9e93f7eea732a26a77db12 100644 |
--- a/runtime/bin/file_linux.cc |
+++ b/runtime/bin/file_linux.cc |
@@ -578,10 +578,7 @@ File::StdioHandleType File::GetStdioHandleType(int fd) { |
struct stat64 buf; |
int result = TEMP_FAILURE_RETRY(fstat64(fd, &buf)); |
if (result == -1) { |
- const int kBufferSize = 1024; |
- char error_buf[kBufferSize]; |
- FATAL2("Failed stat on file descriptor %d: %s", fd, |
- Utils::StrError(errno, error_buf, kBufferSize)); |
+ return kOther; |
} |
if (S_ISCHR(buf.st_mode)) { |
return kTerminal; |