Chromium Code Reviews| Index: runtime/bin/file_macos.cc | 
| diff --git a/runtime/bin/file_macos.cc b/runtime/bin/file_macos.cc | 
| index a43b14eaada0245797ae855c2abde869b97e682c..38699cd6d069b63556d5aa89cb167bb597d243ef 100644 | 
| --- a/runtime/bin/file_macos.cc | 
| +++ b/runtime/bin/file_macos.cc | 
| @@ -41,7 +41,8 @@ class FileHandle { | 
| File::~File() { | 
| - if (!IsClosed()) { | 
| + if (!IsClosed() && | 
| + handle_->fd() != STDOUT_FILENO && handle_->fd() != STDERR_FILENO) { | 
| Close(); | 
| } | 
| delete handle_; |