MINOR: startup: replace HAPROXY_LOAD_SUCCESS with global load_status
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Tue, 12 Nov 2024 10:28:46 +0000 (11:28 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 13 Nov 2024 08:50:05 +0000 (09:50 +0100)
commitd5d41dee3daf01314d65e053faf3cab52ea6929e
tree825712ccf9120bbe744d451baad19b9770c7c6e3
parentaadda34fd6276c993e0c8e95d734d510d667a61a
MINOR: startup: replace HAPROXY_LOAD_SUCCESS with global load_status

After master-worker refactoring, master performs re-exec only once up to
receiving "reload" command or USR2 signal. There is no more the second
master's re-exec to free unused memory. Thus, there is no longer need to export
environment variable HAPROXY_LOAD_SUCCESS with worker process load status. This
status can be simply saved in a global variable load_status.
include/haproxy/mworker.h
src/cli.c
src/haproxy.c
src/mworker.c