]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: startup: dump libs only in worker if started with -W -dL
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Tue, 29 Oct 2024 18:22:40 +0000 (19:22 +0100)
committerValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Wed, 30 Oct 2024 09:00:40 +0000 (10:00 +0100)
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

index 4bc6e4d0386f5afbd13b18b07581542956932e69..f0d8b783384f1fa5cfb233bae8b2a4a39db8362c 100644 (file)
@@ -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)))