diff --git a/src/haproxy.c b/src/haproxy.c index 6f591d6ff..4d95ae6eb 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -1540,9 +1540,6 @@ static void init(int argc, char **argv) /* Initialise lua. */ hlua_init(); - /* Initialize process vars */ - vars_init_head(&proc_vars, SCOPE_PROC); - global.tune.options |= GTUNE_USE_SELECT; /* select() is always available */ #if defined(USE_POLL) global.tune.options |= GTUNE_USE_POLL; diff --git a/src/vars.c b/src/vars.c index 4ed3a1d05..e620acf3a 100644 --- a/src/vars.c +++ b/src/vars.c @@ -1335,6 +1335,8 @@ static int vars_max_size_check(char **args, int section_type, struct proxy *curp static void vars_init() { var_name_hash_seed = ha_random64(); + /* Initialize process vars */ + vars_init_head(&proc_vars, SCOPE_PROC); } INITCALL0(STG_PREPARE, vars_init);