Commit 9a67e6c7 authored by Reid Kleckner's avatar Reid Kleckner

Fix the Windows timeout code.

parent 5b5394c6
...@@ -1113,11 +1113,11 @@ class Popen(object): ...@@ -1113,11 +1113,11 @@ class Popen(object):
if self.stdout is not None: if self.stdout is not None:
self.stdout_thread.join(self._remaining_time(endtime)) self.stdout_thread.join(self._remaining_time(endtime))
if self.stdout_thread.isAlive(): if self.stdout_thread.isAlive():
raise TimeoutExpired(self.args) raise TimeoutExpired(self.args, orig_timeout)
if self.stderr is not None: if self.stderr is not None:
self.stderr_thread.join(self._remaining_time(endtime)) self.stderr_thread.join(self._remaining_time(endtime))
if self.stderr_thread.isAlive(): if self.stderr_thread.isAlive():
raise TimeoutExpired(self.args) raise TimeoutExpired(self.args, orig_timeout)
# Collect the output from and close both pipes, now that we know # Collect the output from and close both pipes, now that we know
# both have been read successfully. # both have been read successfully.
......
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