merge 3.1

This commit is contained in:
Benjamin Peterson 2011-05-24 12:09:26 -05:00
commit 48e21fc46f
1 changed files with 2 additions and 1 deletions

View File

@ -552,15 +552,16 @@ class ForkingMixIn:
else:
# Child process.
# This must never return, hence os._exit()!
self.socket.close()
try:
self.finish_request(request, client_address)
self.shutdown_request(request)
self.socket.close()
os._exit(0)
except:
try:
self.handle_error(request, client_address)
self.shutdown_request(request)
self.socket.close()
finally:
os._exit(1)