Mercurial > public > mercurial-scm > python-hglib
diff hglib/__init__.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 | ce516ed9bc0d |
children | 15485fa4b35e |
line wrap: on
line diff
--- a/hglib/__init__.py Fri Aug 19 22:27:40 2011 +0300 +++ b/hglib/__init__.py Fri Aug 19 22:24:14 2011 +0300 @@ -14,7 +14,8 @@ insecure=insecure) args.insert(0, HGPATH) - proc = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + proc = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, + close_fds=util.closefds) out, err = proc.communicate() if proc.returncode: