]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mworker: unset more internal variables from program section
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 5 Apr 2023 13:50:57 +0000 (15:50 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 5 Apr 2023 14:02:36 +0000 (16:02 +0200)
commitb4e651f12f90021c7f92f7b31999315206121eb3
treee56fa76f157753bf73b14ce9ad10a849cb16ca38
parent15adc4cc4e111b46ac48818a3d2d0bd0d4453cfd
BUG/MINOR: mworker: unset more internal variables from program section

People who use HAProxy as a process 1 in containers sometimes starts
other things from the program section. This is still not recommend as
the master process has minimal features regarding process management.

Environment variables are still inherited, even internal ones.

Since 2.7, it could provoke a crash when inheriting the
HAPROXY_STARTUPLOGS_FD variable.

Note: for future releases it should be better to clean the env and sets
a list of variable to be exported. We need to determine which variables
are used by users before.

Must be backported in 2.7.
src/mworker-prog.c