Skip to content

Commit fd3ab91

Browse files
committed
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
2 parents c953cf9 + 7b91929 commit fd3ab91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run-command.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static void cleanup_children(int sig, int in_signal)
4848

4949
kill(p->pid, sig);
5050

51-
if (p->process->wait_after_clean) {
51+
if (p->process && p->process->wait_after_clean) {
5252
p->next = children_to_wait_for;
5353
children_to_wait_for = p;
5454
} else {

0 commit comments

Comments
 (0)