]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport 1.38:
authorRaymond Hettinger <python@rcn.com>
Fri, 21 Feb 2003 07:16:37 +0000 (07:16 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 21 Feb 2003 07:16:37 +0000 (07:16 +0000)
commitae60b9e2b493eed7bc96450850731f606cfd3e97
tree64b6d87c2d17f5ba33532ed5c1e5f523ca09cb51
parent83e9e32791317f880e825bdbdd7ff4ac4a9b1ef8
Backport 1.38:
 Fix an old bug in poll().  When a signal is handled while we're
 blocked in select(), this will raise select.error with errno set to
 EINTR.  The except clauses correctly ignores this error, but the rest
 of the logic will then call read() for all objects in select's *input*
 list of read file descriptors.  Then when an object's read_handler()
 is naive, it will call recv() on its socket, which will raise an
 IOError, and then asyncore decides to close the socket.  To fix this,
 we simply return in this case.
 Backport candidate.

Backport 1.40:
 Fix spelling error
Lib/asyncore.py