Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2352)

Unified Diff: runtime/bin/eventhandler_linux.cc

Issue 12319067: Handle legacy epoll event on Linux. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/standalone/standalone.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/eventhandler_linux.cc
diff --git a/runtime/bin/eventhandler_linux.cc b/runtime/bin/eventhandler_linux.cc
index 1bf9378aac2a309bc04abd33fbefbdd58fcb3e4a..543378ba930ad9eb9dffb68450d596ded48f322c 100644
--- a/runtime/bin/eventhandler_linux.cc
+++ b/runtime/bin/eventhandler_linux.cc
@@ -324,6 +324,12 @@ intptr_t EventHandlerImplementation::GetPollEvents(intptr_t events,
event_mask |= (1 << kOutEvent);
}
}
+
+ if (events == (EPOLLHUP | EPOLLERR)) {
Søren Gjesse 2013/02/22 09:29:06 So we still never get EPOLLHUP all alone on socket
Anders Johnsen 2013/02/22 09:33:18 Added.
+ event_mask = (1 << kErrorEvent);
+ sd->MarkClosedWrite();
+ sd->MarkClosedRead();
+ }
}
return event_mask;
« no previous file with comments | « no previous file | tests/standalone/standalone.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698