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

Unified Diff: runtime/bin/process.cc

Issue 8227010: Fix deadlock in process exit handling (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments from @ager Created 9 years, 2 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 | « runtime/bin/process.h ('k') | runtime/bin/process_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process.cc
diff --git a/runtime/bin/process.cc b/runtime/bin/process.cc
index 6ae139972ca6471911ca978fc48f442289782da0..484316bdf2061548b57d7514bc187086258ea7c8 100644
--- a/runtime/bin/process.cc
+++ b/runtime/bin/process.cc
@@ -61,6 +61,7 @@ void FUNCTION_NAME(Process_Start)(Dart_NativeArguments args) {
Dart_ExitScope();
}
+
void FUNCTION_NAME(Process_Kill)(Dart_NativeArguments args) {
Dart_EnterScope();
intptr_t pid = DartUtils::GetIntegerValue(Dart_GetNativeArgument(args, 1));
@@ -68,3 +69,11 @@ void FUNCTION_NAME(Process_Kill)(Dart_NativeArguments args) {
Dart_SetReturnValue(args, Dart_NewBoolean(success));
Dart_ExitScope();
}
+
+
+void FUNCTION_NAME(Process_Exit)(Dart_NativeArguments args) {
+ Dart_EnterScope();
+ intptr_t pid = DartUtils::GetIntegerValue(Dart_GetNativeArgument(args, 1));
+ Process::Exit(pid);
+ Dart_ExitScope();
+}
« no previous file with comments | « runtime/bin/process.h ('k') | runtime/bin/process_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698