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

Unified Diff: runtime/bin/process.h

Issue 2961993002: [dart:io] Fixes a crash in VM shutdown when signals are watched (Closed)
Patch Set: Fixes for Windows, comment Created 3 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
« no previous file with comments | « no previous file | runtime/bin/process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process.h
diff --git a/runtime/bin/process.h b/runtime/bin/process.h
index 683e747837c7124b24b40682b2fcd383854debd9..6b68466ea2105d0e62543263dc87713d80793844 100644
--- a/runtime/bin/process.h
+++ b/runtime/bin/process.h
@@ -139,7 +139,11 @@ class Process {
static intptr_t CurrentProcessId();
static intptr_t SetSignalHandler(intptr_t signal);
- static void ClearSignalHandler(intptr_t signal);
+ // When there is a current Isolate and the 'port' argument is
+ // Dart_GetMainPortId(), this clears the signal handler for the current
+ // isolate. When 'port' is ILLEGAL_PORT, this clears all signal handlers for
+ // 'signal' for all Isolates.
+ static void ClearSignalHandler(intptr_t signal, Dart_Port port);
static void ClearAllSignalHandlers();
static Dart_Handle GetProcessIdNativeField(Dart_Handle process,
« no previous file with comments | « no previous file | runtime/bin/process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698