[issue7995] On Mac / BSD sockets returned by accept inherit the parent's FD flags

Ross Lagerwall report at bugs.python.org
Fri Dec 31 15:50:50 CET 2010


Ross Lagerwall <rosslagerwall at gmail.com> added the comment:

>From what I coud see, the same applied to NetBSD so I enabled it for NetBSD as well - if there are any other OSes that need it enabled, they can be added.

The updated patch checks for fcntl() failing and simply leaves the socket as is if it fails.

The test silenced socket.error() just because the other tests did like testSetBlocking, testInitNonBlocking, testAccept, etc. I updated it to remove this.

----------
Added file: http://bugs.python.org/file20206/7995_v2.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7995>
_______________________________________


More information about the Python-bugs-list mailing list