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

Unified Diff: runtime/bin/socket_macos.cc

Issue 2211523002: Make Mac-port non-blocking. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update changelog. Created 4 years, 4 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 | « CHANGELOG.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket_macos.cc
diff --git a/runtime/bin/socket_macos.cc b/runtime/bin/socket_macos.cc
index 708cd3cdea9bd926079f611df3870980e8563d57..b6b0e50432db99ef75989d17fcff17fba6f2ce79 100644
--- a/runtime/bin/socket_macos.cc
+++ b/runtime/bin/socket_macos.cc
@@ -99,6 +99,8 @@ intptr_t Socket::CreateBindConnect(const RawAddr& addr,
return -1;
}
+ FDUtils::SetNonBlocking(fd);
Søren Gjesse 2016/08/04 06:35:49 I think moving it to Create would be better - then
floitsch 2016/08/04 12:17:07 Done.
+
return Connect(fd, addr);
}
« no previous file with comments | « CHANGELOG.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698