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

Unified Diff: runtime/bin/platform_linux.cc

Issue 59393003: Always mark stdout and stderr as blocking on exit. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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/platform_android.cc ('k') | runtime/bin/platform_macos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/platform_linux.cc
diff --git a/runtime/bin/platform_linux.cc b/runtime/bin/platform_linux.cc
index 80aa0af74c62d3260af606ca4c947c63ab49c5e4..89031a110822de4fe4f03977cd19598fecfde6f8 100644
--- a/runtime/bin/platform_linux.cc
+++ b/runtime/bin/platform_linux.cc
@@ -78,6 +78,12 @@ void Platform::PrintBlocking(FILE* file, const char* format, ...) {
FDUtils::SetNonBlocking(fd);
}
+
+void Platform::Cleanup() {
+ FDUtils::SetBlocking(fileno(stdout));
+ FDUtils::SetBlocking(fileno(stderr));
+}
+
} // namespace bin
} // namespace dart
« no previous file with comments | « runtime/bin/platform_android.cc ('k') | runtime/bin/platform_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698