Index: runtime/bin/eventhandler_win.cc |
diff --git a/runtime/bin/eventhandler_win.cc b/runtime/bin/eventhandler_win.cc |
index 993670cc53e9ae9a705e5f818e7f3bfd4e156368..85bb1368e1ea6edd7c64380a12677b60ad6a59ea 100644 |
--- a/runtime/bin/eventhandler_win.cc |
+++ b/runtime/bin/eventhandler_win.cc |
@@ -715,14 +715,7 @@ void StdHandle::DoClose() { |
locker.Wait(Monitor::kNoTimeout); |
} |
} |
- if (handle_ == GetStdHandle(STD_OUTPUT_HANDLE)) { |
- int fd = _open("NUL", _O_WRONLY); |
- ASSERT(fd >= 0); |
- _dup2(fd, _fileno(stdout)); |
- close(fd); |
- } else { |
- Handle::DoClose(); |
- } |
+ Handle::DoClose(); |
} |