Commit f69b4ae7 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Report if killing haproxy fails

parent 5545e602
......@@ -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 ?
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment