From: Willy Tarreau Date: Wed, 23 Feb 2022 16:25:00 +0000 (+0100) Subject: MEDIUM: init: handle arguments earlier X-Git-Tag: v2.6-dev2~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18f96d02d38fc3d3f88785540d1c59de2d9a88bf;p=thirdparty%2Fhaproxy.git MEDIUM: init: handle arguments earlier The argument parser runs too late, we'll soon need it before creating pools, hence just after init_early(). No visible change is expected but this part is sensitive enough to be placed into its own commit for easier bisection later if needed. --- diff --git a/src/haproxy.c b/src/haproxy.c index 4cb8fe1cd4..b62f305345 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -2942,13 +2942,13 @@ int main(int argc, char **argv) /* now's time to initialize early boot variables */ init_early(argc, argv); + /* handles argument parsing */ + init_args(argc, argv); + RUN_INITCALLS(STG_ALLOC); RUN_INITCALLS(STG_POOL); RUN_INITCALLS(STG_INIT); - /* handles argument parsing */ - init_args(argc, argv); - /* this is the late init where the config is parsed */ init(argc, argv);