diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-05 19:22:01 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-05 19:22:01 +0000 |
commit | 1a781364929b9dae215d8065b51c2383a09e4a64 (patch) | |
tree | a72d6110056d320c9340ff83ac14d9dd0edb2313 /base | |
parent | 718fb437953c3c47592884deaecd9dd7581fad3d (diff) | |
download | chromium_src-1a781364929b9dae215d8065b51c2383a09e4a64.zip chromium_src-1a781364929b9dae215d8065b51c2383a09e4a64.tar.gz chromium_src-1a781364929b9dae215d8065b51c2383a09e4a64.tar.bz2 |
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
Diffstat (limited to 'base')
-rw-r--r-- | base/process_posix.cc | 9 |
1 files changed, 8 insertions, 1 deletions
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 { |