From 1a781364929b9dae215d8065b51c2383a09e4a64 Mon Sep 17 00:00:00 2001 From: "thomasvl@chromium.org" Date: Thu, 5 Feb 2009 19:22:01 +0000 Subject: Add simple terminate support for now to help bring up browser/renderer, will get more work as we make it better handle the posix platform. Review URL: http://codereview.chromium.org/20090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9238 0039d316-1c4b-4281-b951-d872f2087c98 --- base/process_posix.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/base/process_posix.cc b/base/process_posix.cc index 162ba35..30ca81d 100644 --- a/base/process_posix.cc +++ b/base/process_posix.cc @@ -10,10 +10,17 @@ namespace base { void Process::Close() { process_ = 0; + // if the process wasn't termiated (so we waited) or the state + // wasn't already collected w/ a wait from process_utils, we're gonna + // end up w/ a zombie when it does finally exit. } void Process::Terminate(int result_code) { - NOTIMPLEMENTED(); + // result_code isn't supportable. + if (!process_) + return; + // Wait so we clean up the zombie + KillProcess(process_, result_code, true); } bool Process::IsProcessBackgrounded() const { -- cgit v1.1