[6.0] c4e07ea1a Report if killing haproxy fails
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Thu Aug 16 08:52:38 UTC 2018
commit c4e07ea1a7211b36ed7a265d2f4af8702c883f2f
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Fri Apr 6 21:41:46 2018 +0000
Report if killing haproxy fails
diff --git a/bin/varnishtest/vtc_haproxy.c b/bin/varnishtest/vtc_haproxy.c
index f8eec1215..21a6cb34d 100644
--- a/bin/varnishtest/vtc_haproxy.c
+++ b/bin/varnishtest/vtc_haproxy.c
@@ -324,6 +324,9 @@ haproxy_wait(struct haproxy *h)
vtc_log(h->vl, 2, "Stop HAproxy pid=%ld", (long)h->pid);
h->kill_status = kill(h->pid, HAPROXY_SIGNAL);
h->kill_errno = errno;
+ if (h->kill_status)
+ vtc_log(h->vl, 4, "Kill=%d: %s",
+ h->kill_status, strerror(h->kill_errno));
h->expect_signal = -HAPROXY_SIGNAL;
// XXX: loop over kills to ESRCH ?
}
More information about the varnish-commit
mailing list