projects
/
tools
/
git-buildpackage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56068e5
)
Git.Repository.__git_inout: Close all other file descriptors
author
Guido Günther
<agx@sigxcpu.org>
Sat, 29 Jun 2013 10:38:42 +0000
(12:38 +0200)
committer
Guido Günther
<agx@sigxcpu.org>
Sat, 29 Jun 2013 10:39:38 +0000
(12:39 +0200)
No need to leak fds to the child.
gbp/git/repository.py
patch
|
blob
|
history
diff --git
a/gbp/git/repository.py
b/gbp/git/repository.py
index
306d0bd
..
9365d93
100644
(file)
--- 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