diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-28 01:37:23 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-28 01:37:23 +0000 |
commit | 140a7cd1d47292be7c5872c6019c1ab09af774e3 (patch) | |
tree | 5210806d7de816fa0025952e20bf6396b1c0d9fb /base/process_posix.cc | |
parent | a7c2ff748541a96df53995216dc2a7c1209dca48 (diff) | |
download | chromium_src-140a7cd1d47292be7c5872c6019c1ab09af774e3.zip chromium_src-140a7cd1d47292be7c5872c6019c1ab09af774e3.tar.gz chromium_src-140a7cd1d47292be7c5872c6019c1ab09af774e3.tar.bz2 |
POSIX: don't spawn zombies.
http://codereview.chromium.org/93147
BUG=9401
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14705 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_posix.cc')
-rw-r--r-- | base/process_posix.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/base/process_posix.cc b/base/process_posix.cc index ff8cf92..c9a7dfc 100644 --- a/base/process_posix.cc +++ b/base/process_posix.cc @@ -18,8 +18,9 @@ void Process::Terminate(int result_code) { // result_code isn't supportable. if (!process_) return; - // Wait so we clean up the zombie - KillProcess(process_, result_code, true); + // We don't wait here. It's the responsibility of other code to reap the + // child. + KillProcess(process_, result_code, false); } bool Process::IsProcessBackgrounded() const { |