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

Unified Diff: runtime/bin/eventhandler_android.h

Issue 165723007: Move signal_blocker to platform and use it by default in TEMP_FAILURE_RETRY. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tiny fix. Created 6 years, 9 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 | « runtime/bin/directory_macos.cc ('k') | runtime/bin/eventhandler_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/eventhandler_android.h
diff --git a/runtime/bin/eventhandler_android.h b/runtime/bin/eventhandler_android.h
index 2647164fbf31d90782a4cf978157dd85eb5548c4..6b1bec6cad6a9c2899892529343457370f3ac702 100644
--- a/runtime/bin/eventhandler_android.h
+++ b/runtime/bin/eventhandler_android.h
@@ -10,11 +10,13 @@
#error use eventhandler.h instead.
#endif
-#include <unistd.h>
+#include <errno.h>
#include <sys/epoll.h>
#include <sys/socket.h>
+#include <unistd.h>
#include "platform/hashmap.h"
+#include "platform/signal_blocker.h"
namespace dart {
@@ -40,7 +42,7 @@ class SocketData {
void Close() {
port_ = 0;
mask_ = 0;
- close(fd_);
+ VOID_TEMP_FAILURE_RETRY(close(fd_));
fd_ = -1;
}
« no previous file with comments | « runtime/bin/directory_macos.cc ('k') | runtime/bin/eventhandler_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698