Revert r235177 as the Handle is used to fail GetExitCodeProcess on purpose.
authorYaron Keren <yaron.keren@gmail.com>
Fri, 17 Apr 2015 12:11:15 +0000 (12:11 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Fri, 17 Apr 2015 12:11:15 +0000 (12:11 +0000)
commitdc71d8a7b95d642f26243d10eda86f33e7a6f6ba
treed524590c1fdeb8372a331936c4cd41ec408c674d
parent187afcd54800a37a513ab93f4c6966cd963d1741
Revert r235177 as the Handle is used to fail GetExitCodeProcess on purpose.
Avoid double closing of the handle by testing GetLastErr for
ERROR_INVALID_HANDLE and not calling CloseHandle(PI.ProcessHandle) then.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235184 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Windows/Program.inc