Merge branch 'tg/stash-push-fixup'
[gitweb.git] / run-command.c
index 5227f78aeaae7e76bfc85d4d7ca2886b2b52215e..574b81d3e82bbe6de31b141c3951ab408daad5e6 100644 (file)
@@ -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 {