summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git/cmd.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/git/cmd.py b/git/cmd.py
index a7435497..af019f13 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -618,7 +618,10 @@ class Git(LazyMixin):
try:
os.kill(pid, SIGKILL)
for child_pid in child_pids:
- os.kill(child_pid, SIGKILL)
+ try:
+ os.kill(child_pid, SIGKILL)
+ except OSError:
+ pass
kill_check.set() # tell the main routine that the process was killed
except OSError:
# It is possible that the process gets completed in the duration after timeout