diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/socketserver.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/socketserver.py b/Lib/socketserver.py index 76ac50a..c53ac29 100644 --- a/Lib/socketserver.py +++ b/Lib/socketserver.py @@ -532,13 +532,14 @@ class ForkingMixIn: else: # Child process. # This must never return, hence os._exit()! - self.socket.close() try: self.finish_request(request, client_address) + self.socket.close() os._exit(0) except: try: self.handle_error(request, client_address) + self.socket.close() finally: os._exit(1) |