summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2011-03-20 15:28:07 (GMT)
committerReid Kleckner <reid@kleckner.net>2011-03-20 15:28:07 (GMT)
commit9a67e6c74367b82896b30f0d02a2e1e748ed7c5e (patch)
tree0207afb0155bed60d12c371f25b29de256701a91 /Lib
parent5b5394c6dfa76eb3d9f3448f5410d230ef8cd948 (diff)
downloadcpython-9a67e6c74367b82896b30f0d02a2e1e748ed7c5e.zip
cpython-9a67e6c74367b82896b30f0d02a2e1e748ed7c5e.tar.gz
cpython-9a67e6c74367b82896b30f0d02a2e1e748ed7c5e.tar.bz2
Fix the Windows timeout code.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/subprocess.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index 383085e..ffa3bd1 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -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.