summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
authorCory Johns <cjohns@slashdotmedia.com>2013-10-09 19:02:56 +0000
committerCory Johns <cjohns@slashdotmedia.com>2013-10-09 20:49:44 +0000
commitd3a728277877924e889e9fef42501127f48a4e77 (patch)
tree930599537d72c28517b045924433f44ef7eb8da6 /git/cmd.py
parent5869c5c1a51d448a411ae0d51d888793c35db9c0 (diff)
downloadgitpython-d3a728277877924e889e9fef42501127f48a4e77.tar.gz
[#5330] Ensure wait() is called on git processes
Diffstat (limited to 'git/cmd.py')
-rw-r--r--git/cmd.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/git/cmd.py b/git/cmd.py
index 63a7134e..75687a41 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -80,6 +80,7 @@ class Git(LazyMixin):
# try to kill it
try:
os.kill(self.proc.pid, 2) # interrupt signal
+ self.proc.wait() # ensure process goes away
except AttributeError:
# try windows
# for some reason, providing None for stdout/stderr still prints something. This is why