Index: runtime/bin/file_android.cc |
diff --git a/runtime/bin/file_android.cc b/runtime/bin/file_android.cc |
index 2196619b1e45f88d992f01636f80f43c28d257be..b27d83c97a54bbfd24b098bc5fef8f4e091ee51b 100644 |
--- a/runtime/bin/file_android.cc |
+++ b/runtime/bin/file_android.cc |
@@ -566,10 +566,7 @@ File::StdioHandleType File::GetStdioHandleType(int fd) { |
struct stat buf; |
int result = fstat(fd, &buf); |
if (result == -1) { |
- const int kBufferSize = 1024; |
- char error_message[kBufferSize]; |
- Utils::StrError(errno, error_message, kBufferSize); |
- FATAL2("Failed stat on file descriptor %d: %s", fd, error_message); |
+ return kOther; |
} |
if (S_ISCHR(buf.st_mode)) { |
return kTerminal; |