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

Unified Diff: runtime/bin/main.cc

Issue 9315037: Wait for exit-code thread to terminate before terminating main. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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/process.h » ('j') | runtime/bin/process_linux.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/main.cc
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc
index be36001948ce097ab2d804fb505987e7e96632f0..5077803bebdbea0c208f32984b2c87dba709ef7a 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -14,6 +14,7 @@
#include "bin/eventhandler.h"
#include "bin/file.h"
#include "bin/platform.h"
+#include "bin/process.h"
#include "platform/globals.h"
// snapshot_buffer points to a snapshot if we link in a snapshot otherwise
@@ -572,6 +573,8 @@ int main(int argc, char** argv) {
Dart_ShutdownIsolate();
// Terminate event handler.
EventHandler::Terminate();
+ // Terminate process exit-code handler.
+ Process::TerminateExitCodeHandler();
return 0;
}
« no previous file with comments | « no previous file | runtime/bin/process.h » ('j') | runtime/bin/process_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698