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

Unified Diff: runtime/bin/stdio_android.cc

Issue 154273003: Make std* blocking file-descriptors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update with bug. Created 6 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 | « runtime/bin/socket_win.cc ('k') | runtime/bin/stdio_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/stdio_android.cc
diff --git a/runtime/bin/stdio_android.cc b/runtime/bin/stdio_android.cc
index b14dad823f7e3e5b42aa71d1468d5bb64395f5b8..12c87c96f32e79c9fb69f5229e0218a98e843510 100644
--- a/runtime/bin/stdio_android.cc
+++ b/runtime/bin/stdio_android.cc
@@ -18,12 +18,10 @@ namespace dart {
namespace bin {
int Stdin::ReadByte() {
- FDUtils::SetBlocking(STDIN_FILENO);
int c = getchar();
if (c == EOF) {
c = -1;
}
- FDUtils::SetNonBlocking(STDIN_FILENO);
return c;
}
« no previous file with comments | « runtime/bin/socket_win.cc ('k') | runtime/bin/stdio_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698