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:
commit
6756b58ebc
@ -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