Commit 368b9889 authored by Denis Bilenko's avatar Denis Bilenko

add todo for subprocess/windows

parent dbda01ed
...@@ -467,6 +467,9 @@ class Popen(object): ...@@ -467,6 +467,9 @@ class Popen(object):
def wait(self): def wait(self):
"""Wait for child process to terminate. Returns returncode """Wait for child process to terminate. Returns returncode
attribute.""" attribute."""
# XXX support timeout argument
# XXX do not launch more than one WaitForSingleObject
# XXX add 'event' attribute
if self.returncode is None: if self.returncode is None:
self.threadpool.apply_e(BaseException, WaitForSingleObject, (self._handle, INFINITE)) self.threadpool.apply_e(BaseException, WaitForSingleObject, (self._handle, INFINITE))
self.returncode = GetExitCodeProcess(self._handle) self.returncode = GetExitCodeProcess(self._handle)
......
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