summaryrefslogtreecommitdiff
path: root/psutil/_pssunos.py
diff options
context:
space:
mode:
authorGiampaolo Rodola' <g.rodola@gmail.com>2013-12-17 20:38:17 +0100
committerGiampaolo Rodola' <g.rodola@gmail.com>2013-12-17 20:38:17 +0100
commitd47993e2652b8f51f891566f49e660190b2e540d (patch)
treedcd7185f50554f9122a6ba3e6d6566b3fb7cbb9d /psutil/_pssunos.py
parent996b67bc1dc227962cbe16249b1710ba414d8be0 (diff)
downloadpsutil-d47993e2652b8f51f891566f49e660190b2e540d.tar.gz
TimeoutExpired exception: pass the original timeout so that the error message is more informative
Diffstat (limited to 'psutil/_pssunos.py')
-rw-r--r--psutil/_pssunos.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/_pssunos.py b/psutil/_pssunos.py
index 41fe5e46..f7793485 100644
--- a/psutil/_pssunos.py
+++ b/psutil/_pssunos.py
@@ -504,4 +504,4 @@ class Process(object):
try:
return _psposix.wait_pid(self.pid, timeout)
except TimeoutExpired:
- raise TimeoutExpired(self.pid, self._process_name)
+ raise TimeoutExpired(timeout, self.pid, self._process_name)