From bbe7828d497553701f6e32a2d55a9c820a49d293 Mon Sep 17 00:00:00 2001 From: Valentine Krasnobaeva Date: Tue, 29 Oct 2024 19:25:07 +0100 Subject: [PATCH] BUG/MINOR: startup: dump keywords only in worker if started with -W -dKAll If haproxy was started with -W -dK*, after master-worker refactoring, we dump registered keywords to stdout twice in master and in worker processes. This information is redundant and output has no longer the right format. So, as the keyword registration happens very early before the fork, let's dump keywords only in the worker context, if haproxy was launched with -W. This does not need to be backported, as related to the latest master-worker refactoring. --- src/haproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/haproxy.c b/src/haproxy.c index f0d8b7833..ffee48779 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -2464,7 +2464,7 @@ static void step_init_2(int argc, char** argv) } #endif - if (global.mode & MODE_DUMP_KWD) + if (global.mode & MODE_DUMP_KWD && !master) dump_registered_keywords(); if (global.mode & MODE_DIAG) { -- 2.47.3