close(), exceptions and problems

Jeff Epler jepler at inetnebr.com
Mon Mar 26 18:31:09 EST 2001


On 26 Mar 2001 21:56:43 GMT, Antti Kuntsi
 <kuntsi at cc.helsinki.fi.spam.no> wrote:
>Close, the problem is that the implementation in at least Python 1.5.2
>does not check the return code of the close() and thus does not raise an
>exception, at least not with sockets.

This appears to be true of Python 2.0 as well.

It looks like PySocketSock_{accept,close,dup,makefile,dealloc} and
PySocket_socket all potentially need to be modified to correctly deal with
-EINTR (or other) returns from close(socket).  (The users of the SOCKETCLOSE
macro)

Jeff



More information about the Python-list mailing list