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

Unified Diff: runtime/bin/builtin_natives.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 | « no previous file | 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/builtin_natives.cc
diff --git a/runtime/bin/builtin_natives.cc b/runtime/bin/builtin_natives.cc
index 5681c0a58b3a08f120aae76f53b3100d1ccda305..c5ef460dcfc7a0862f48acea42b161b81880fff4 100644
--- a/runtime/bin/builtin_natives.cc
+++ b/runtime/bin/builtin_natives.cc
@@ -117,10 +117,11 @@ void FUNCTION_NAME(Logger_PrintString)(Dart_NativeArguments args) {
// an isolate gets interrupted by the embedder in the middle of
// Dart_StringToUTF8? We need to make sure not to swallow the
// interrupt.
- Platform::PrintBlocking(stdout, "%s\n", Dart_GetError(result));
+ fprintf(stdout, "%s\n", Dart_GetError(result));
} else {
- Platform::PrintBlocking(stdout, "%.*s\n", static_cast<int>(length), chars);
+ fprintf(stdout, "%.*s\n", static_cast<int>(length), chars);
}
+ fflush(stdout);
}
} // namespace bin
« no previous file with comments | « no previous file | runtime/bin/eventhandler_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698