mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Correct error in last checkin noticed by Neal Norwitz. And some more.
This commit is contained in:
parent
11c53e2ea7
commit
0529377cdf
1 changed files with 4 additions and 4 deletions
|
@ -101,17 +101,17 @@ class RPCServer(SocketServer.TCPServer):
|
||||||
except EOFError:
|
except EOFError:
|
||||||
pass
|
pass
|
||||||
except:
|
except:
|
||||||
erf = 'sys.__stderr__'
|
erf = sys.__stderr__
|
||||||
print>>erf, '-'*40
|
print>>erf, '\n' + '-'*40
|
||||||
print>>erf, 'Unhandled server exception!'
|
print>>erf, 'Unhandled server exception!'
|
||||||
print>>erf, 'Thread: %s' % threading.currentThread().getName()
|
print>>erf, 'Thread: %s' % threading.currentThread().getName()
|
||||||
print>>erf, 'Client Address: ', address
|
print>>erf, 'Client Address: ', client_address
|
||||||
print>>erf, 'Request: ', repr(request)
|
print>>erf, 'Request: ', repr(request)
|
||||||
traceback.print_exc(file=erf)
|
traceback.print_exc(file=erf)
|
||||||
print>>erf, '\n*** Unrecoverable, server exiting!'
|
print>>erf, '\n*** Unrecoverable, server exiting!'
|
||||||
print>>erf, '-'*40
|
print>>erf, '-'*40
|
||||||
import os
|
import os
|
||||||
os._exit
|
os._exit(0)
|
||||||
|
|
||||||
|
|
||||||
objecttable = {}
|
objecttable = {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue