mercurial/utils/procutil.py
branchstable
changeset 46019 fdd54a876213
parent 45148 a37f290a7124
child 46030 2cf61e66c6d0
equal deleted inserted replaced
45851:81da6feb5000 46019:fdd54a876213
   638     ):
   638     ):
   639         '''Spawn a command without waiting for it to finish.'''
   639         '''Spawn a command without waiting for it to finish.'''
   640         # we can't use close_fds *and* redirect stdin. I'm not sure that we
   640         # we can't use close_fds *and* redirect stdin. I'm not sure that we
   641         # need to because the detached process has no console connection.
   641         # need to because the detached process has no console connection.
   642         p = subprocess.Popen(
   642         p = subprocess.Popen(
   643             tonativestr(script),
   643             pycompat.rapply(tonativestr, script),
   644             shell=shell,
   644             shell=shell,
   645             env=tonativeenv(env),
   645             env=tonativeenv(env),
   646             close_fds=True,
   646             close_fds=True,
   647             creationflags=_creationflags,
   647             creationflags=_creationflags,
   648             stdout=stdout,
   648             stdout=stdout,