1
0
mirror of https://github.com/git/git.git synced 2024-09-22 03:12:08 +02:00

Merge branch 'jk/execv-dashed-external'

Fix for NO_PTHREADS build.

* jk/execv-dashed-external:
  run-command: fix segfault when cleaning forked async process
This commit is contained in:
Junio C Hamano 2017-03-24 13:07:34 -07:00
commit 6756b58ebc

View File

@ -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 {