Browse Source

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
maint
Junio C Hamano 8 years ago
parent
commit
fd3ab91ce6
  1. 2
      run-command.c

2
run-command.c

@ -48,7 +48,7 @@ static void cleanup_children(int sig, int in_signal) @@ -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…
Cancel
Save