--- a/mercurial/cmdutil.py Thu Nov 19 17:33:41 2009 -0500 +++ b/mercurial/cmdutil.py Tue Nov 17 15:00:00 2009 +0900 @@ -571,7 +571,7 @@ if parentfn: return parentfn(pid) else: - os._exit(0) + return if initfn: initfn()