[lit] Speculatively fix PR24554 by manually closing the process handle
authorReid Kleckner <rnk@google.com>
Tue, 25 Aug 2015 16:07:06 +0000 (16:07 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 25 Aug 2015 16:07:06 +0000 (16:07 +0000)
commitb6566b103fac04e33fbf12b95ca9fb49295da791
treefb5db60e50af83a08312a0b9437081ba55a24d61
parent2140b798ec04c8f4dc731a6ea21341162da53beb
[lit] Speculatively fix PR24554 by manually closing the process handle

My theory is that somehow Python's refcounting and GC strategy isn't
closing the subprocess handle in a timely fashion.  This accesses the
private '_handle' field of the Popen object, but I see no other way to
do this. If this doesn't address the problem on the sanitizer-windows
buildbot, we can revert this change. If it does, then let's keep the
hack.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245946 91177308-0d34-0410-b5e6-96231b3b80d8
utils/lit/lit/TestRunner.py