summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
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 5425d8ff..a1780de7 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -88,6 +88,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 OSError:
pass # ignore error when process already died
except AttributeError: