From 1ee2afb00afaf77c883501eac8cd614c8229a444 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 27 May 2010 00:58:20 +0200 Subject: cmd: By default, on linux, the parent file handles will be closed to leave the child less cluttered, and make it easier to debug as it will only have the file descriptors we set. It appears to be more stable regarding the stdin-is-closed-but-child-doesn't-realize-this issue --- lib/git/cmd.py | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/git/cmd.py') diff --git a/lib/git/cmd.py b/lib/git/cmd.py index 254b7dd3..5724531f 100644 --- a/lib/git/cmd.py +++ b/lib/git/cmd.py @@ -215,6 +215,7 @@ class Git(object): stdin=istream, stderr=subprocess.PIPE, stdout=subprocess.PIPE, + close_fds=(os.name=='posix'),# unsupported on linux **extra ) if as_process: -- cgit v1.2.1