Index: runtime/bin/eventhandler_linux.cc |
diff --git a/runtime/bin/eventhandler_linux.cc b/runtime/bin/eventhandler_linux.cc |
index 0db1f533efc6dfcfc5a970f08b01431f0c573438..f57594966e8e4e4a5a93436656e4ba5d409fbc9e 100644 |
--- a/runtime/bin/eventhandler_linux.cc |
+++ b/runtime/bin/eventhandler_linux.cc |
@@ -235,15 +235,7 @@ void EventHandlerImplementation::HandleInterruptFd() { |
// next message. |
RemoveFromEpollInstance(epoll_fd_, sd); |
intptr_t fd = sd->fd(); |
- if (fd == STDOUT_FILENO) { |
- // If stdout, redirect fd to /dev/null. |
- int null_fd = TEMP_FAILURE_RETRY(open("/dev/null", O_WRONLY)); |
- ASSERT(null_fd >= 0); |
- VOID_TEMP_FAILURE_RETRY(dup2(null_fd, STDOUT_FILENO)); |
- VOID_TEMP_FAILURE_RETRY(close(null_fd)); |
- } else { |
- sd->Close(); |
- } |
+ sd->Close(); |
socket_map_.Remove(GetHashmapKeyFromFd(fd), GetHashmapHashFromFd(fd)); |
delete sd; |
DartUtils::PostInt32(msg[i].dart_port, 1 << kDestroyedEvent); |