Skip to content

Commit ea824ae

Browse files
committed
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.
1 parent d1c6d44 commit ea824ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/haproxy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2456,7 +2456,7 @@ static void step_init_2(int argc, char** argv)
24562456
}
24572457

24582458
#if defined(HA_HAVE_DUMP_LIBS)
2459-
if (global.mode & MODE_DUMP_LIBS) {
2459+
if (global.mode & MODE_DUMP_LIBS && !master) {
24602460
qfprintf(stdout, "List of loaded object files:\n");
24612461
chunk_reset(&trash);
24622462
if (dump_libs(&trash, ((arg_mode & (MODE_QUIET|MODE_VERBOSE)) == MODE_VERBOSE)))

0 commit comments

Comments
 (0)