[master] 520de7f Re-add a detail I missed: Kill the process group instead of just the direct child process.
Poul-Henning Kamp
phk at FreeBSD.org
Fri Nov 18 12:10:05 CET 2016
commit 520de7f7cd4ed52af930314a21f7c2730afd6a18
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Fri Nov 18 11:08:44 2016 +0000
Re-add a detail I missed: Kill the process group instead of just the direct child process.
diff --git a/bin/varnishtest/vtc_process.c b/bin/varnishtest/vtc_process.c
index f2fb1c8..effb25c 100644
--- a/bin/varnishtest/vtc_process.c
+++ b/bin/varnishtest/vtc_process.c
@@ -266,7 +266,7 @@ process_kill(const struct process *p, const char *sig)
else
vtc_log(p->vl, 0, "Could not grok signal (%s)", sig);
- if (kill(p->pid, j) < 0)
+ if (kill(-p->pid, j) < 0)
vtc_log(p->vl, 0, "Failed to send signal %d (%s)", j, strerror(errno));
else
vtc_log(p->vl, 4, "Sent signal %d", j);
More information about the varnish-commit
mailing list