]> git.saurik.com Git - wxWidgets.git/commit
Fix wxKill(wxSIGNONE) always returning true for child processes in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 9 Sep 2010 21:49:44 +0000 (21:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 9 Sep 2010 21:49:44 +0000 (21:49 +0000)
commite436c454e17774eba4c79e0d5d9d056448d96a20
treefee419e237197855e45a6c71aa4056aabd6c8cb2
parentb54ceb72ce8d03400f6f002c8bec3fa27b6c32f5
Fix wxKill(wxSIGNONE) always returning true for child processes in wxMSW.

The fact that a handle to a process can be opened doesn't mean that the
process is still running. In fact, for a child process that we store a handle
for ourselves we will always be able to open (another copy of the) handle even
if it already terminated.

Check for the process termination using WaitForSingleObject() instead in both
normal and wxSIGNONE cases.

Also simplify the code by not using GetExitCodeProcess() at all as we don't
need the process exit code.

Closes #2834.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/utils.cpp