summaryrefslogtreecommitdiff
path: root/Lib/SocketServer.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-06-01 18:58:34 +0000
committerGuido van Rossum <guido@python.org>1999-06-01 18:58:34 +0000
commit5add3544ddde1e047171fd8ba920606a95c81a2c (patch)
tree091050ea12633673064a2c924bf0daa1a84236f3 /Lib/SocketServer.py
parent91f3c31b95f592071600cebd84f3c6b3d79d3c1a (diff)
downloadcpython-5add3544ddde1e047171fd8ba920606a95c81a2c.tar.gz
Andy Dustman notes that I patched the close() call in the wrong place.
Here's the correct patch!
Diffstat (limited to 'Lib/SocketServer.py')
-rw-r--r--Lib/SocketServer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/SocketServer.py b/Lib/SocketServer.py
index d8081efbe0..fe1402e0b2 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: