]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mworker: wait mode use standard init code path
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 21 Nov 2018 14:48:31 +0000 (15:48 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 21 Nov 2018 16:05:30 +0000 (17:05 +0100)
commit944e619b647899125c1a41449daa7dc8c8dc7926
tree2fd4944d94adab91445369c9985c64fbd08c9a13
parent7e346f3694ac8d0cd3f306d2d971eae59af3d4da
MEDIUM: mworker: wait mode use standard init code path

The mworker waitpid mode (which is used when a reload failed to apply
the new configuration) was still using a specific initialisation path.
That's a problem since we use a polling loop in the master now, the
master proxy is not initialized and the master CLI is not activated.

This patch removes the initialisation code of the wait mode and
introduce the MODE_MWORKER_WAIT in order to use the same init path as
the MODE_MWORKER with some exceptions. It allows to use the master proxy
and the master CLI during the waitpid mode.
include/types/global.h
src/haproxy.c