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

Unified Diff: runtime/bin/stdio_linux.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/stdio_android.cc ('k') | runtime/bin/stdio_macos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/stdio_linux.cc
diff --git a/runtime/bin/stdio_linux.cc b/runtime/bin/stdio_linux.cc
index 5d1739a6b70edcb380a14d0b4f53baa169027f16..f61cc30319bb35b392b646baa5d3ed15113873da 100644
--- a/runtime/bin/stdio_linux.cc
+++ b/runtime/bin/stdio_linux.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/stdio_android.cc ('k') | runtime/bin/stdio_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698