To reproduce: ```py import _socket s = _socket.socket() s.close() assert s.fileno() == -1 ``` Causes failures in test_socket and test_socketserver.