Message60312
Logged In: YES
user_id=896179
Also seen on Mac OS X 10.4.4 (Darwin 8.4.0) with Python 2.4.2.
The Zope guys are seeing it too:
http://mail.zope.org/pipermail/zope-collector-monitor/2005-December/
006267.html
It seems remarkable that this bug has been open for 3 years. spawn*() are
pretty much useless without a fix.
Here's patch that works for me:
--- /Users/dhess/os.py 2006-01-29 19:29:25.000000000 -0600
+++ /opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/os.py 2006-01-29 19:29:32.000000000 -0600
@@ -532,7 +532,13 @@
if mode == P_NOWAIT:
return pid # Caller is responsible for waiting!
while 1:
- wpid, sts = waitpid(pid, 0)
+ try:
+ wpid, sts = waitpid(pid, 0)
+ except OSError, exc:
+ import errno
+ if exc.errno == errno.EINTR:
+ continue
+ raise
if WIFSTOPPED(sts):
continue
elif WIFSIGNALED(sts):
|
|
Date |
User |
Action |
Args |
2008-01-20 09:55:59 | admin | link | issue686667 messages |
2008-01-20 09:55:59 | admin | create | |
|