Index: runtime/bin/file_linux.cc |
diff --git a/runtime/bin/file_linux.cc b/runtime/bin/file_linux.cc |
index eab92d5361ea847ad8e7b8064a6d47c9f86bdecf..4f61db1d306b3415c629dea7a2f3f10b6564b015 100644 |
--- a/runtime/bin/file_linux.cc |
+++ b/runtime/bin/file_linux.cc |
@@ -39,7 +39,8 @@ class FileHandle { |
File::~File() { |
- if (!IsClosed()) { |
+ if (!IsClosed() && |
+ handle_->fd() != STDOUT_FILENO && handle_->fd() != STDERR_FILENO) { |
Close(); |
} |
delete handle_; |