| Index: runtime/bin/eventhandler_macos.cc
|
| diff --git a/runtime/bin/eventhandler_macos.cc b/runtime/bin/eventhandler_macos.cc
|
| index a6554c9fc7e33b21045b780ee271243b2c82ed01..1c0d31309cd234962b0206a1de79331f5906ddee 100644
|
| --- a/runtime/bin/eventhandler_macos.cc
|
| +++ b/runtime/bin/eventhandler_macos.cc
|
| @@ -236,6 +236,8 @@ void EventHandlerImplementation::HandleInterruptFd() {
|
| RemoveFromKqueue(kqueue_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 {
|
|
|