Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-03-28 23:52:23 +0300
committerJunio C Hamano <gitster@pobox.com>2017-03-28 23:52:23 +0300
commitfd3ab91ce651d4d0a4ecc21fb7d2246a4da056d5 (patch)
treecab88878a0e623384c10d10f5b0ad6e59e82a75a /run-command.c
parentc953cf95a5fdf2fa1b8f288db6b1a0398d6e8311 (diff)
parent7b91929ba0422435c193c506dbaa593964be6e84 (diff)
Merge branch 'jk/execv-dashed-external' into maint
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 5227f78aea..574b81d3e8 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 {