]> git.kaiwu.me - haproxy.git/commit
MINOR: startup: rename and adapt reexec_on_failure
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Wed, 2 Oct 2024 12:12:11 +0000 (14:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Oct 2024 20:02:39 +0000 (22:02 +0200)
commit2bb07b913d09790172858b0491130bb517c75734
treeb66b75078e1ac413fc5c9e84c34de34cd2987167
parent9b27f82da3cc406dd3935cb106802c2fa4f5ba9e
MINOR: startup: rename and adapt reexec_on_failure

Previously reexec_on_failure() was called in cases when the process has failed
after reload, while it was parsing its configuration or it was trying to apply
it. reexec_on_failure() has called mworker_reexec() and the master process has
been reexecuted.

With the new architecture in such cases there is no longer need to reexecute
the master process after its reload again. It simply keeps the previous worker,
forked before the reload, and it lets the new one to exit with an error. But we
still need the code, which increments the number of failed reloads and which
notifies systemd with new "Reload failed!" status. So, let's reuse and adapt
for this reexec_on_failure() and let's rename it to on_new_child_failure().
include/haproxy/global.h
src/haproxy.c