mercurial/cmdutil.py
changeset 10237 2f7a38f336f4
parent 10160 48653dea23dd
child 10238 e22695b4472f
--- a/mercurial/cmdutil.py	Tue Jan 12 15:12:53 2010 +0100
+++ b/mercurial/cmdutil.py	Fri Apr 10 21:20:25 2009 +0200
@@ -580,8 +580,7 @@
             elif runargs[i].startswith('--cwd'):
                 del runargs[i:i+2]
                 break
-        pid = os.spawnvp(os.P_NOWAIT | getattr(os, 'P_DETACH', 0),
-                         runargs[0], runargs)
+        pid = util.spawndetached(runargs)
         os.close(wfd)
         os.read(rfd, 1)
         if parentfn: