worker: properly report errors from worker processes (issue3982)
authorMatt Mackall <mpm@selenic.com>
Tue, 16 Jul 2013 15:18:12 -0500
changeset 19408 c7ec39c1a381
parent 19407 ce3d1cf957f8
child 19409 ea4342d0e6fe
worker: properly report errors from worker processes (issue3982)
mercurial/worker.py
--- a/mercurial/worker.py	Tue Jul 16 12:44:11 2013 -0500
+++ b/mercurial/worker.py	Tue Jul 16 15:18:12 2013 -0500
@@ -89,11 +89,8 @@
                 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)