mirror of
https://github.com/git/git.git
synced 2024-11-11 12:19:40 +01:00
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:
commit
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user