mercurial/util.py
changeset 10422 600142e7a028
parent 10344 9501cde4c034
child 10438 e6dc44147234
equal deleted inserted replaced
10420:41d0ed2c79df 10422:600142e7a028
  1309         return [sys.executable]
  1309         return [sys.executable]
  1310     return gethgcmd()
  1310     return gethgcmd()
  1311 
  1311 
  1312 def rundetached(args, condfn):
  1312 def rundetached(args, condfn):
  1313     """Execute the argument list in a detached process.
  1313     """Execute the argument list in a detached process.
  1314     
  1314 
  1315     condfn is a callable which is called repeatedly and should return
  1315     condfn is a callable which is called repeatedly and should return
  1316     True once the child process is known to have started successfully.
  1316     True once the child process is known to have started successfully.
  1317     At this point, the child process PID is returned. If the child
  1317     At this point, the child process PID is returned. If the child
  1318     process fails to start or finishes before condfn() evaluates to
  1318     process fails to start or finishes before condfn() evaluates to
  1319     True, return -1.
  1319     True, return -1.