mirror of
https://github.com/python/cpython.git
synced 2024-11-28 20:33:54 +08:00
Issue #5715: In socketserver, close the server socket in the child process.
This commit is contained in:
parent
7963a35b41
commit
7b54e7562d
@ -529,10 +529,10 @@ class ForkingMixIn:
|
||||
self.active_children = []
|
||||
self.active_children.append(pid)
|
||||
self.close_request(request)
|
||||
return
|
||||
else:
|
||||
# Child process.
|
||||
# This must never return, hence os._exit()!
|
||||
self.socket.close()
|
||||
try:
|
||||
self.finish_request(request, client_address)
|
||||
os._exit(0)
|
||||
|
Loading…
Reference in New Issue
Block a user