fix more threading API related bugs

This commit is contained in:
Benjamin Peterson 2008-06-13 02:00:47 +00:00
parent 2d9a086410
commit b03ca4bc68
9 changed files with 27 additions and 27 deletions

View file

@ -73,7 +73,7 @@ def main(del_exitfunc=False):
sockthread = threading.Thread(target=manage_socket,
name='SockThread',
args=((LOCALHOST, port),))
sockthread.setDaemon(True)
sockthread.set_daemon(True)
sockthread.start()
while 1:
try:
@ -227,7 +227,7 @@ class MyRPCServer(rpc.RPCServer):
erf = sys.__stderr__
print('\n' + '-'*40, file=erf)
print('Unhandled server exception!', file=erf)
print('Thread: %s' % threading.currentThread().getName(), file=erf)
print('Thread: %s' % threading.current_thread().get_name(), file=erf)
print('Client Address: ', client_address, file=erf)
print('Request: ', repr(request), file=erf)
traceback.print_exc(file=erf)