diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-24 22:09:58 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-24 22:09:58 +0000 |
commit | 50faca730337e5145c58b9a8852be735433c8d77 (patch) | |
tree | e4dab2a083c8836c0a5f1e1ce8f7b5e2e7c2255b /base/process_util_win.cc | |
parent | 31f23a35436b79adee1c094f7aa37867496ebd07 (diff) | |
download | chromium_src-50faca730337e5145c58b9a8852be735433c8d77.zip chromium_src-50faca730337e5145c58b9a8852be735433c8d77.tar.gz chromium_src-50faca730337e5145c58b9a8852be735433c8d77.tar.bz2 |
POSIX: Don't spawn zombies.
TEST=Navigate to several different sites and check that no Chrome zombies are roaming around.
BUG=9401
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14488 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util_win.cc')
-rw-r--r-- | base/process_util_win.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/base/process_util_win.cc b/base/process_util_win.cc index 13fec9a..fc05664 100644 --- a/base/process_util_win.cc +++ b/base/process_util_win.cc @@ -270,8 +270,12 @@ bool KillProcess(ProcessHandle process, int exit_code, bool wait) { return result; } -bool DidProcessCrash(ProcessHandle handle) { +bool DidProcessCrash(bool* child_exited, ProcessHandle handle) { DWORD exitcode = 0; + + if (child_exited) + *child_exited = true; // On Windows it an error to call this function if + // the child hasn't already exited. if (!::GetExitCodeProcess(handle, &exitcode)) { NOTREACHED(); return false; |