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.
This commit is contained in:
Valentine Krasnobaeva 2024-10-29 19:22:40 +01:00
parent d1c6d44976
commit ea824aebc1
1 changed files with 1 additions and 1 deletions

View File

@ -2456,7 +2456,7 @@ static void step_init_2(int argc, char** argv)
} }
#if defined(HA_HAVE_DUMP_LIBS) #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"); qfprintf(stdout, "List of loaded object files:\n");
chunk_reset(&trash); chunk_reset(&trash);
if (dump_libs(&trash, ((arg_mode & (MODE_QUIET|MODE_VERBOSE)) == MODE_VERBOSE))) if (dump_libs(&trash, ((arg_mode & (MODE_QUIET|MODE_VERBOSE)) == MODE_VERBOSE)))