mercurial/posix.py
changeset 10237 2f7a38f336f4
parent 10218 750b7a4f01f6
child 10239 8e4be44a676f
--- a/mercurial/posix.py	Tue Jan 12 15:12:53 2010 +0100
+++ b/mercurial/posix.py	Fri Apr 10 21:20:25 2009 +0200
@@ -257,3 +257,8 @@
         return grp.getgrgid(gid)[0]
     except KeyError:
         return str(gid)
+
+def spawndetached(args):
+    return os.spawnvp(os.P_NOWAIT | getattr(os, 'P_DETACH', 0),
+                      args[0], args)
+