Mercurial > python-hglib
diff hglib/client.py @ 62:d1f57f162274
closefds on posix when using subprocess
see added test for a clarification on why this is needed
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Fri, 19 Aug 2011 22:24:14 +0300 |
parents | d0b9215180a4 |
children | 939d1d763bb1 |
line wrap: on
line diff
--- a/hglib/client.py Fri Aug 19 22:27:40 2011 +0300 +++ b/hglib/client.py Fri Aug 19 22:24:14 2011 +0300 @@ -24,7 +24,8 @@ env['HGENCODING'] = encoding self.server = subprocess.Popen(args, stdin=subprocess.PIPE, - stdout=subprocess.PIPE, env=env) + stdout=subprocess.PIPE, env=env, + close_fds=util.closefds) self._readhello() self._version = None