]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MINOR] report list of supported pollers with -vv
authorWilly Tarreau <w@1wt.eu>
Sat, 3 Oct 2009 16:57:08 +0000 (18:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 3 Oct 2009 16:57:08 +0000 (18:57 +0200)
During troubleshooting, it's often useful to get the list of supported
pollers but until now it was required to have a working configuration
first. Since the pollers are known before main() is called, let's list
them with the build options.

src/haproxy.c

index b5e1dc973d6300601506a9b534e8f70ddc0cd68d..37d4eea8f5c24074c18b3b4c151fa2e223c5c0b4 100644 (file)
@@ -185,6 +185,9 @@ void display_build_opts()
               "\n  maxconn = %d, bufsize = %d, maxrewrite = %d, maxpollevents = %d"
               "\n\n",
               DEFAULT_MAXCONN, BUFSIZE, MAXREWRITE, MAX_POLL_EVENTS);
+
+       list_pollers(stdout);
+       putchar('\n');
 }
 
 /*