mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
Fix the Windows timeout code.
This commit is contained in:
parent
5b5394c6df
commit
9a67e6c743
1 changed files with 2 additions and 2 deletions
|
|
@ -1113,11 +1113,11 @@ class Popen(object):
|
|||
if self.stdout is not None:
|
||||
self.stdout_thread.join(self._remaining_time(endtime))
|
||||
if self.stdout_thread.isAlive():
|
||||
raise TimeoutExpired(self.args)
|
||||
raise TimeoutExpired(self.args, orig_timeout)
|
||||
if self.stderr is not None:
|
||||
self.stderr_thread.join(self._remaining_time(endtime))
|
||||
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
|
||||
# both have been read successfully.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue