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

Unified Diff: runtime/bin/process.cc

Issue 9307033: Revert "Changes to the process implementation." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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 b4a80846b448dc96790122a75036163bb0320601..8e830e9a43ec6e40c101995a068dcdab48e79d73 100644
--- a/runtime/bin/process.cc
+++ b/runtime/bin/process.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -114,3 +114,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