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

Unified Diff: runtime/bin/main.cc

Issue 1177153005: Enables clean VM shutdown. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Kill isolates from the service isolate Created 5 years, 6 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
Index: runtime/bin/main.cc
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc
index cebd7e676ceb80d2f5c2a101db8992316311f70d..ec9c4c269eae1bf6872dec74dd8878aa284d8b7a 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -97,6 +97,9 @@ static void ErrorExit(int exit_code, const char* format, ...) {
Dart_ExitScope();
Dart_ShutdownIsolate();
+ // Terminate process exit-code handler.
+ Process::TerminateExitCodeHandler();
+
Dart_Cleanup();
exit(exit_code);

Powered by Google App Engine
This is Rietveld 408576698