mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Andy Dustman notes that I patched the close() call in the wrong place.
Here's the correct patch!
This commit is contained in:
parent
6b708d569c
commit
198e7cac5a
1 changed files with 1 additions and 1 deletions
|
@ -300,11 +300,11 @@ class ForkingMixIn:
|
||||||
# Child process.
|
# Child process.
|
||||||
# This must never return, hence os._exit()!
|
# This must never return, hence os._exit()!
|
||||||
try:
|
try:
|
||||||
|
self.socket.close()
|
||||||
self.finish_request(request, client_address)
|
self.finish_request(request, client_address)
|
||||||
os._exit(0)
|
os._exit(0)
|
||||||
except:
|
except:
|
||||||
try:
|
try:
|
||||||
self.socket.close()
|
|
||||||
self.handle_error(request,
|
self.handle_error(request,
|
||||||
client_address)
|
client_address)
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue