Commit c4e07ea1 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Dridi Boukelmoune

Report if killing haproxy fails

parent 43f1ca56
......@@ -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