Chromium Code Reviews| Index: runtime/bin/eventhandler_android.cc |
| diff --git a/runtime/bin/eventhandler_android.cc b/runtime/bin/eventhandler_android.cc |
| index bbc8acbc8bec5ea726fc780a7cb6b62bb49d7e20..6bacfb60c4f28c99d2769b246733da6e2b0fa4bc 100644 |
| --- a/runtime/bin/eventhandler_android.cc |
| +++ b/runtime/bin/eventhandler_android.cc |
| @@ -216,6 +216,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")); |
|
kustermann
2013/06/27 11:51:09
A few questions here:
- can we safely use fileno(
Anders Johnsen
2013/06/27 14:45:52
Done.
|
| socket_map_.Remove(GetHashmapKeyFromFd(fd), GetHashmapHashFromFd(fd)); |
| delete sd; |
| } else { |