Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/execv-dashed-external'
author
Junio C Hamano
<gitster@pobox.com>
Fri, 24 Mar 2017 20:07:34 +0000
(13:07 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 24 Mar 2017 20:07:34 +0000
(13:07 -0700)
Fix for NO_PTHREADS build.
* jk/execv-dashed-external:
run-command: fix segfault when cleaning forked async process
run-command.c
patch
|
blob
|
history
raw
(from parent 1:
78cf8ef
)
diff --git
a/run-command.c
b/run-command.c
index 5227f78aeaae7e76bfc85d4d7ca2886b2b52215e..574b81d3e82bbe6de31b141c3951ab408daad5e6 100644
(file)
--- a/
run-command.c
+++ b/
run-command.c
@@
-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 {