summaryrefslogtreecommitdiff
path: root/run-command.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-03-24 20:07:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-03-24 20:07:34 (GMT)
commit6756b58ebc213a786adaccf3f0f07c56c8a2744a (patch)
treec14f4ee3cd089a6df6e54e57e5d6f52e6b4a35c2 /run-command.c
parent78cf8efec34c419ecea86bc8d1fe47ec0b51ba37 (diff)
parent7b91929ba0422435c193c506dbaa593964be6e84 (diff)
downloadgit-6756b58ebc213a786adaccf3f0f07c56c8a2744a.zip
git-6756b58ebc213a786adaccf3f0f07c56c8a2744a.tar.gz
git-6756b58ebc213a786adaccf3f0f07c56c8a2744a.tar.bz2
Merge branch 'jk/execv-dashed-external'
Fix for NO_PTHREADS build. * jk/execv-dashed-external: run-command: fix segfault when cleaning forked async process
Diffstat (limited to 'run-command.c')
-rw-r--r--run-command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/run-command.c b/run-command.c
index 5227f78..574b81d 100644
--- a/run-command.c
+++ b/run-command.c
@@ -48,7 +48,7 @@ static void cleanup_children(int sig, int in_signal)
kill(p->pid, sig);
- if (p->process->wait_after_clean) {
+ if (p->process && p->process->wait_after_clean) {
p->next = children_to_wait_for;
children_to_wait_for = p;
} else {