| Index: runtime/bin/eventhandler_linux.cc
|
| diff --git a/runtime/bin/eventhandler_linux.cc b/runtime/bin/eventhandler_linux.cc
|
| index aa852d197e79c76ac34de41b0ba32f7c6c91b5d8..0ae0de4648c0071d95c8079fa17c695e9b6afb7f 100644
|
| --- a/runtime/bin/eventhandler_linux.cc
|
| +++ b/runtime/bin/eventhandler_linux.cc
|
| @@ -224,6 +224,8 @@ void EventHandlerImplementation::HandleInterruptFd() {
|
| RemoveFromEpollInstance(epoll_fd_, sd);
|
| intptr_t fd = sd->fd();
|
| sd->Close();
|
| + // If stdout, reuse fd and direct to /dev/null.
|
| + if (fd == fileno(stdout)) USE(fopen("/dev/null", "r"));
|
| socket_map_.Remove(GetHashmapKeyFromFd(fd), GetHashmapHashFromFd(fd));
|
| delete sd;
|
| } else {
|
|
|