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)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 27 Jul 2021 06:36:50 +0000 (08:36 +0200)
commitadf901b3dec32994a39ec6cb0ba5625afdeca319
tree92b6270d195a726ae33644aa152359efd5b2cc76
parente63b9c9857ac626d98b9fa3f145a02199a9f5a1b
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.

(cherry picked from commit 3c032f2d4d3ba508d508ae70603ccac6d5cf9d4a)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit a9274a17f6466b82359a5b6954bb3a35bce814f3)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/haproxy.c
src/mworker-prog.c