diff options
author | stoyan@chromium.org <stoyan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-09 19:28:41 +0000 |
---|---|---|
committer | stoyan@chromium.org <stoyan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-09 19:28:41 +0000 |
commit | cd4fd156aba80ddffd3fffd8e2d8703247181fe0 (patch) | |
tree | 1f4b2dc5f58e5f534b033f71e0e48cc5549c6732 /base/process_util.h | |
parent | a6309f8198825442d77f0fc9aa70c82ae5dd6d04 (diff) | |
download | chromium_src-cd4fd156aba80ddffd3fffd8e2d8703247181fe0.zip chromium_src-cd4fd156aba80ddffd3fffd8e2d8703247181fe0.tar.gz chromium_src-cd4fd156aba80ddffd3fffd8e2d8703247181fe0.tar.bz2 |
Fix the windows implementation of KillProcess and WaitForSingleProcess to not close the process handle that they do not own.
Review URL: http://codereview.chromium.org/24004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9400 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util.h')
-rw-r--r-- | base/process_util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/process_util.h b/base/process_util.h index c921d7a..029f307 100644 --- a/base/process_util.h +++ b/base/process_util.h @@ -151,9 +151,9 @@ bool KillProcesses(const std::wstring& executable_name, int exit_code, // entry structure, giving it the specified exit code. If |wait| is true, wait // for the process to be actually terminated before returning. // Returns true if this is successful, false otherwise. -bool KillProcess(int process_id, int exit_code, bool wait); +bool KillProcess(ProcessHandle process, int exit_code, bool wait); #if defined(OS_WIN) -bool KillProcess(HANDLE process, int exit_code, bool wait); +bool KillProcessById(DWORD process_id, int exit_code, bool wait); #endif // Get the termination status (exit code) of the process and return true if the |