Commit 984b4ad7 authored by Denis Bilenko's avatar Denis Bilenko

subprocess: fix Popen.wait() on windows

it failed with LoopError because thread pool was accidentally used inside thread pool
parent e88f561a
......@@ -471,7 +471,7 @@ class Popen(object):
return self.returncode
def _wait(self):
self.threadpool.apply_e(BaseException, WaitForSingleObject, (self._handle, INFINITE))
WaitForSingleObject(self._handle, INFINITE)
return GetExitCodeProcess(self._handle)
def wait(self, timeout=None):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment