From: Valentine Krasnobaeva Date: Tue, 29 Oct 2024 18:22:40 +0000 (+0100) Subject: BUG/MINOR: startup: dump libs only in worker if started with -W -dL X-Git-Tag: v3.1-dev11~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ea824aebc1acc172e6cc8318ff6bc352fa03b94c;p=thirdparty%2Fhaproxy.git 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. --- 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)))