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

Unified Diff: runtime/bin/main.cc

Issue 1428923003: Don't do clean shutdown on Process.exit() (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Exit isolate before exiting Created 5 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/bin.gypi ('k') | runtime/bin/process.cc » ('j') | no next file with comments »
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 91b3f8223f2ae175b8750e4a1ab24e0aa99a032a..1f20666a2c2e44373ef8e02e82b232a0e1a190d5 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -118,7 +118,10 @@ static const int kErrorExitCode = 255;
// Exit code indicating a vm restart request. Never returned to the user.
static const int kRestartRequestExitCode = 1000;
-extern bool do_vm_shutdown; // Defined in bin/process.cc
+// Global flag that is used to indicate that the VM should do a clean
+// shutdown.
+static bool do_vm_shutdown = false;
+
static void ErrorExit(int exit_code, const char* format, ...) {
va_list arguments;
va_start(arguments, format);
« no previous file with comments | « runtime/bin/bin.gypi ('k') | runtime/bin/process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698