BUG/MEDIUM: mworker: don't lose the stats socket on failed reload
In master mode, when the master reexecs itself, it passes the stats socket
address via "-x" on the command line. However, the address is first
retrieved from the configuration, and only later in the boot sequence
the one passed on the command line is considered. As such, some early
errors on reload like a missing config file will cause the process to
rexec itself with no stats socket address on the command line, preventing
the new master from retrieving previous listeners.
The right thing to do is to preset the value to the one found on the
command line so that it can be preserved across failed reloads.
There is no mainline equivalent for this commit because this code was
removed from 2.6, which now only uses the socket pair. The patch must
be backported to older versions where it applies.
(cherry picked from commit b8df64a85120195f40e0f55b9db54c95b72bbdcc)
Signed-off-by: Willy Tarreau <w@1wt.eu>
1 file changed