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 4cb8fe1..b62f305 100644
--- a/src/haproxy.c
+++ b/src/haproxy.c
@@ -2942,13 +2942,13 @@
/* 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);