зеркало из https://github.com/microsoft/git.git
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
This commit is contained in:
Коммит
fd3ab91ce6
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче