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.

(cherry picked from commit ef9a1957424e9fcf147abe4fcceff5d6c809f945)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit a51c3e1d1f85f095b3bfad5f21b94a92c1303a41)
[cf: ctx adjt]
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit ef066d64263e7f9934800de1db3eb7d85a3ab7b0)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 3f027553ed6c62b8a1af139e12bb904a90c470bf)
[wla: use pid_bit for nbproc handling]
Signed-off-by: William Lallemand <wlallemand@haproxy.com>
1 file changed