]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mworker: adapt exit_on_failure for master recovery mode
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Tue, 8 Oct 2024 12:17:18 +0000 (14:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Oct 2024 20:02:39 +0000 (22:02 +0200)
commitfe4708feaa6a112114421fa17154e458fdb154f7
tree61626dcb3f7a10e1fea2efcbad05812a62a4615a
parent6615e464562ceeea0fd480a32d73e3b5af73eef7
MINOR: mworker: adapt exit_on_failure for master recovery mode

Master recovery mode replaces the former wait-mode with a difference, that
master in this case doesn't try to fork the new worker process. But it still
needs to enter to its polling loop in order to monitor the previous worker.
Master performs some initialization steps for this and it recreates its master
CLI. During its initialization steps, master could potentially fail again.
As we use for the moment for master init steps some common routines
(step_init_2() and step_init_3()), there is no way there to signal to user that
failure has happened for the master and in addition, in its recovery mode. So,
in such case exit_on_failure() can be still useful in order to print an
appropriate alert, as we can register this function as atexit handler for the
master.
src/haproxy.c