Open GoogleCodeExporter opened 9 years ago
I might trivially change the loop from
while 1:
try:
send(obj)
break
except IOError,err:
if err.errno==errno.EINTR:
continue
raise
to
while 1:
try:
send(obj)
break
except IOError, err:
if err.errno != errno.EINTR:
raise
but that's just a matter of preference, not correctness.
Anyway, this patch looks great to me. If anything, there might be additional
system calls that could benefit from an EINTR test like this, but it's a start.
It's been about two years since this patch was initially submitted; have any
python-multiprocessing developers had a chance to look at this?
By the way, checks for EINTR may or may not need to go into the stdlib version
of multiprocessing. Python 2.6 and later have signal.siginterrupt which make
it easier to work around this.
Original comment by amcna...@gmail.com
on 11 Mar 2011 at 7:09
Original issue reported on code.google.com by
dr.andre...@gmail.com
on 16 Feb 2009 at 12:35Attachments: