Git.Repository.__git_inout: Close all other file descriptors
authorGuido Günther <agx@sigxcpu.org>
Sat, 29 Jun 2013 10:38:42 +0000 (12:38 +0200)
committerGuido 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

index 306d0bd..9365d93 100644 (file)
@@ -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