]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mworker: mworker_reexec: unset MODE_STARTING before free startup logs...
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Sat, 26 Oct 2024 21:02:38 +0000 (23:02 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 29 Oct 2024 17:17:49 +0000 (18:17 +0100)
commitcd57ee7ffa454315d37ee30548eab5853e521db8
tree644eefae7a7bf5efb4e039c9818530f8148299e2
parent984d2cfb61744bed29ce92cdc5360155cbd8ca44
BUG/MINOR: mworker: mworker_reexec: unset MODE_STARTING before free startup logs ring

Flag MODE_STARTING should be unset for master just before freeing the startup
logs ring, as it triggers the copy of process logs to this ring, see the code
of print_message().

Moreover with this flag set, if startup logs ring pointer is NULL, any
print_message() triggered just before the execvp in mworker_reexec() will call
startup_logs_init(). So ring will be allocated again "discretely" and after
execvp we will lost its address, as in step_init_1() we will call again
startup_logs_init().

No need to backport this fix as it's related to the latest master-worker
refactoring.
src/haproxy.c