From ea824aebc1acc172e6cc8318ff6bc352fa03b94c Mon Sep 17 00:00:00 2001 From: Valentine Krasnobaeva Date: Tue, 29 Oct 2024 19:22:40 +0100 Subject: [PATCH] BUG/MINOR: startup: dump libs only in worker if started with -W -dL If haproxy was started with -W -dL, after master-worker refactoring we dump libs to stdout twice in master and in worker processes. This is information is redundant. So let's show linked libraries only in the worker context, if haproxy was started also with -W. This does not need to be backported, as related to the latest master-worker rework. --- src/haproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/haproxy.c b/src/haproxy.c index 4bc6e4d038..f0d8b78338 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -2456,7 +2456,7 @@ static void step_init_2(int argc, char** argv) } #if defined(HA_HAVE_DUMP_LIBS) - if (global.mode & MODE_DUMP_LIBS) { + if (global.mode & MODE_DUMP_LIBS && !master) { qfprintf(stdout, "List of loaded object files:\n"); chunk_reset(&trash); if (dump_libs(&trash, ((arg_mode & (MODE_QUIET|MODE_VERBOSE)) == MODE_VERBOSE)))