summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2013-06-29 12:38:42 +0200
committerGuido Günther <agx@sigxcpu.org>2013-06-29 12:39:38 +0200
commit585439e6616411379c7f1ce71cd92e861612f2a1 (patch)
treefb1ff401e4088009ac180c4402638382da9718c6
parent56068e5f326934558c16f7ee29c9ede74d461388 (diff)
downloadgit-buildpackage-585439e6616411379c7f1ce71cd92e861612f2a1.tar.gz
git-buildpackage-585439e6616411379c7f1ce71cd92e861612f2a1.tar.bz2
git-buildpackage-585439e6616411379c7f1ce71cd92e861612f2a1.zip
Git.Repository.__git_inout: Close all other file descriptors
No need to leak fds to the child.
-rw-r--r--gbp/git/repository.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py
index 306d0bd8..9365d936 100644
--- a/gbp/git/repository.py
+++ b/gbp/git/repository.py
@@ -149,6 +149,7 @@ class GitRepository(object):
stdout=subprocess.PIPE,
stderr=stderr_arg,
env=env,
+ close_fds=True,
cwd=cwd)
(stdout, stderr) = popen.communicate(input)
return stdout, stderr, popen.returncode