Index: runtime/bin/main.cc |
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc |
index 7f294399bb928f8546d1c5fa8e1db84ad6e1171b..10c5605ca37cab3c5cc7af2528d7ecdc411b83fb 100644 |
--- a/runtime/bin/main.cc |
+++ b/runtime/bin/main.cc |
@@ -1269,6 +1269,7 @@ bool RunMainIsolate(const char* script_name, CommandLineOptions* dart_options) { |
Log::PrintErr("VM cleanup failed: %s\n", error); |
free(error); |
} |
+ Process::ClearAllSignalHandlers(); |
EventHandler::Stop(); |
Platform::Exit((exit_code != 0) ? exit_code : kErrorExitCode); |
} |
@@ -1687,6 +1688,7 @@ void main(int argc, char** argv) { |
Log::PrintErr("VM cleanup failed: %s\n", error); |
free(error); |
} |
+ Process::ClearAllSignalHandlers(); |
EventHandler::Stop(); |
delete app_snapshot; |