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

Side by Side Diff: runtime/bin/error_exit.cc

Issue 2760293002: [dart:io] Adds a finalizer to _NativeSocket to avoid socket leaks (Closed)
Patch Set: Address comments Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | runtime/bin/eventhandler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "bin/error_exit.h" 5 #include "bin/error_exit.h"
6 6
7 #include "bin/log.h" 7 #include "bin/log.h"
8 #include "bin/platform.h" 8 #include "bin/platform.h"
9 #include "bin/process.h" 9 #include "bin/process.h"
10 #include "bin/eventhandler.h" 10 #include "bin/eventhandler.h"
(...skipping 15 matching lines...) Expand all
26 26
27 // Terminate process exit-code handler. 27 // Terminate process exit-code handler.
28 Process::TerminateExitCodeHandler(); 28 Process::TerminateExitCodeHandler();
29 29
30 char* error = Dart_Cleanup(); 30 char* error = Dart_Cleanup();
31 if (error != NULL) { 31 if (error != NULL) {
32 Log::PrintErr("VM cleanup failed: %s\n", error); 32 Log::PrintErr("VM cleanup failed: %s\n", error);
33 free(error); 33 free(error);
34 } 34 }
35 35
36 Process::ClearAllSignalHandlers();
36 EventHandler::Stop(); 37 EventHandler::Stop();
37 Platform::Exit(exit_code); 38 Platform::Exit(exit_code);
38 } 39 }
39 40
40 } // namespace bin 41 } // namespace bin
41 } // namespace dart 42 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/eventhandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698