From 7848692c4cb666875477f718e7b89aee69cfba80 Mon Sep 17 00:00:00 2001 From: Valentine Krasnobaeva Date: Mon, 18 Nov 2024 17:54:25 +0100 Subject: [PATCH] MINOR: config: show HAPROXY_BRANCH in "show env" output Before this patch HAPROXY_BRANCH was unset just after configuration parsing. Let's keep it, as it could be used in conditional blocks and some configuration directives and it's handy to check its runtime value via "show env". In master-worker mode, this variable is set to the same value for both processes. --- src/haproxy.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/haproxy.c b/src/haproxy.c index 43b282bd5..f32d488d0 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -1248,7 +1248,6 @@ static int read_cfg(char *progname) } /* remove temporary environment variables. */ - unsetenv("HAPROXY_BRANCH"); unsetenv("HAPROXY_HTTP_LOG_FMT"); unsetenv("HAPROXY_HTTP_CLF_LOG_FMT"); unsetenv("HAPROXY_HTTPS_LOG_FMT");