Skip to content

Commit

Permalink
cmd: By default, on linux, the parent file handles will be closed to …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
Byron committed May 26, 2010
1 parent ecf37a1 commit 1ee2afb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/git/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ def execute(self, command,
stdin=istream,
stderr=subprocess.PIPE,
stdout=subprocess.PIPE,
close_fds=(os.name=='posix'),# unsupported on linux
**extra
)
if as_process:
Expand Down

0 comments on commit 1ee2afb

Please sign in to comment.