BUG/MINOR: startup: set GTUNE_SOCKET_TRANSFER correctly
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 20 Nov 2023 09:49:05 +0000 (10:49 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 20 Nov 2023 09:49:05 +0000 (10:49 +0100)
commitef9a1957424e9fcf147abe4fcceff5d6c809f945
tree5be6b35aeccb3ec4c633da521b52d4efd4ffacc1
parentdb09cd6ad4655a72326e8a52a7c014781292986b
BUG/MINOR: startup: set GTUNE_SOCKET_TRANSFER correctly

This bug was forbidding the GTUNE_SOCKET_TRANSFER option to be set
when haproxy is neither in daemon mode nor in mworker mode. So it
basically only impacts the foreground mode.

The fix moves the code outside the 'if (global.mode & (MODE_DAEMON |
MODE_MWORKER | MODE_MWORKER_WAIT))' condition.

Bug was introduced with 7f80eb23 ("MEDIUM: proxy: zombify proxies only
when the expose-fd socket is bound").

Must be backported in every stable version.
src/haproxy.c