# HG changeset patch # User Matt Mackall # Date 2013-07-16 20:18:12 # Node ID c7ec39c1a381926c91b13545874d9b1abe39e1ba # Parent ce3d1cf957f8dc70eba57ad978b3f7ecf66fd479 worker: properly report errors from worker processes (issue3982) diff --git a/mercurial/worker.py b/mercurial/worker.py --- a/mercurial/worker.py +++ b/mercurial/worker.py @@ -89,11 +89,8 @@ def _posixworker(ui, func, staticargs, a os._exit(0) except KeyboardInterrupt: os._exit(255) - except: # re-raises (close enough for debugging anyway) - try: - ui.traceback() - finally: - os._exit(255) + # other exceptions are allowed to propagate, we rely + # on lock.py's pid checks to avoid release callbacks pids.append(pid) pids.reverse() os.close(wfd)