BUG/MINOR: mworker: do not export HAPROXY_MWORKER_REEXEC across programs
authorWilly Tarreau <w@1wt.eu>
Wed, 21 Jul 2021 08:17:02 +0000 (10:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 21 Jul 2021 08:17:02 +0000 (10:17 +0200)
commit3c032f2d4d3ba508d508ae70603ccac6d5cf9d4a
tree9242a23eba60fbfdf829b454e13624d0fa815397
parent26146194d3c2945ad3d692fbcddaf8d5525117a4
BUG/MINOR: mworker: do not export HAPROXY_MWORKER_REEXEC across programs

This undocumented variable is only for internal use, and its sole
presence affects the process' behavior, as shown in bug #1324. It must
not be exported to workers, external checks, nor programs. Let's unset
it before forking programs and workers.

This should be backported as far as 1.8. The worker code might differ
a bit before 2.5 due to the recent removal of multi-process support.
src/haproxy.c
src/mworker-prog.c