From: Guido van Rossum Date: Tue, 1 Jun 1999 18:58:34 +0000 (+0000) Subject: Andy Dustman notes that I patched the close() call in the wrong place. X-Git-Tag: v1.6a1~1304 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=198e7cac5a3267ffa7243514ac085410f2638c69;p=thirdparty%2FPython%2Fcpython.git Andy Dustman notes that I patched the close() call in the wrong place. Here's the correct patch! --- diff --git a/Lib/SocketServer.py b/Lib/SocketServer.py index d8081efbe015..fe1402e0b270 100644 --- a/Lib/SocketServer.py +++ b/Lib/SocketServer.py @@ -300,11 +300,11 @@ class ForkingMixIn: # Child process. # This must never return, hence os._exit()! try: + self.socket.close() self.finish_request(request, client_address) os._exit(0) except: try: - self.socket.close() self.handle_error(request, client_address) finally: