[psutil] r1263 committed - pass 'pid' to TimeoutExpired exception

0 views
Skip to first unread message

psu...@googlecode.com

unread,
Feb 7, 2012, 7:37:26 PM2/7/12
to psutil-...@googlegroups.com
Revision: 1263
Author: g.rodola
Date: Tue Feb 7 16:36:17 2012
Log: pass 'pid' to TimeoutExpired exception
http://code.google.com/p/psutil/source/detail?r=1263

Modified:
/trunk/psutil/_psposix.py

=======================================
--- /trunk/psutil/_psposix.py Fri Jan 20 10:53:06 2012
+++ /trunk/psutil/_psposix.py Tue Feb 7 16:36:17 2012
@@ -49,7 +49,7 @@
def check_timeout(delay):
if timeout is not None:
if time.time() >= stop_at:
- raise TimeoutExpired
+ raise TimeoutExpired(pid)
time.sleep(delay)
return min(delay * 2, 0.04)

Reply all
Reply to author
Forward
0 new messages