mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-18 19:56:59 +00:00
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.
This commit is contained in:
parent
392524d222
commit
18f96d02d3
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user