# HG changeset patch # User Bryan O'Sullivan # Date 1365712231 25200 # Node ID 779e3d9b7a1d9a2e826d3d81efdf0af8f918c32a # Parent af9fa8d4c9399146c3a241ea02677ca53192e628 worker: catch all exceptions, try to exit usefully/safely diff -r af9fa8d4c939 -r 779e3d9b7a1d mercurial/worker.py --- a/mercurial/worker.py Thu Apr 11 13:30:27 2013 -0700 +++ b/mercurial/worker.py Thu Apr 11 13:30:31 2013 -0700 @@ -89,6 +89,11 @@ os._exit(0) except KeyboardInterrupt: os._exit(255) + except: # re-raises (close enough for debugging anyway) + try: + ui.traceback() + finally: + os._exit(255) pids.append(pid) pids.reverse() os.close(wfd)