Index: runtime/bin/process.cc |
diff --git a/runtime/bin/process.cc b/runtime/bin/process.cc |
index 0f3e5bc0881d06ccb3eb46f0d11a242070b09c24..40affe1b008d5bf1b34721a45536f75a6ec6331c 100644 |
--- a/runtime/bin/process.cc |
+++ b/runtime/bin/process.cc |
@@ -201,11 +201,9 @@ void FUNCTION_NAME(Process_Wait)(Dart_NativeArguments args) { |
} |
-void FUNCTION_NAME(Process_Kill)(Dart_NativeArguments args) { |
- Dart_Handle process = Dart_GetNativeArgument(args, 1); |
- intptr_t pid = -1; |
- Process::GetProcessIdNativeField(process, &pid); |
- intptr_t signal = DartUtils::GetIntptrValue(Dart_GetNativeArgument(args, 2)); |
+void FUNCTION_NAME(Process_KillPid)(Dart_NativeArguments args) { |
+ intptr_t pid = DartUtils::GetIntptrValue(Dart_GetNativeArgument(args, 0)); |
+ intptr_t signal = DartUtils::GetIntptrValue(Dart_GetNativeArgument(args, 1)); |
bool success = Process::Kill(pid, signal); |
Dart_SetReturnValue(args, Dart_NewBoolean(success)); |
} |