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

Unified Diff: runtime/bin/process.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_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process.cc
diff --git a/runtime/bin/process.cc b/runtime/bin/process.cc
index f3ed86a682cbd6f1c5ac93c2ac50727ad964e178..89c8028075e15c53c4c6e10fd1d13d5e2361066f 100644
--- a/runtime/bin/process.cc
+++ b/runtime/bin/process.cc
@@ -4,6 +4,7 @@
#include "bin/dartutils.h"
#include "bin/io_buffer.h"
+#include "bin/platform.h"
#include "bin/process.h"
#include "bin/socket.h"
@@ -211,6 +212,8 @@ void FUNCTION_NAME(Process_Exit)(Dart_NativeArguments args) {
int64_t status = 0;
// Ignore result if passing invalid argument and just exit 0.
DartUtils::GetInt64Value(Dart_GetNativeArgument(args, 0), &status);
+ // Be sure to do platform-specific cleanups.
+ Platform::Cleanup();
exit(static_cast<int>(status));
}
« no previous file with comments | « runtime/bin/platform_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698