From 1b66361f8d57a844018bf20f405fc83d7e2b16d1 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Fri, 26 Oct 2018 14:47:33 +0200 Subject: [PATCH] MEDIUM: mworker: move proc_list gen before proxies startup We need to generate the process list before starting the proxies, because it will be used to create a proxy in the master --- src/haproxy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/haproxy.c b/src/haproxy.c index d5c55e1723..e466904322 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -852,8 +852,6 @@ static void mworker_loop() master = 1; - mworker_env_to_proc_list(); /* get the info of the children in the env */ - signal_register_fct(SIGTERM, mworker_catch_sigterm, SIGTERM); signal_register_fct(SIGUSR1, mworker_catch_sigterm, SIGUSR1); signal_register_fct(SIGINT, mworker_catch_sigterm, SIGINT); @@ -1723,6 +1721,7 @@ static void init(int argc, char **argv) LIST_ADDQ(&proc_list, &tmproc->list); } + mworker_env_to_proc_list(); /* get the info of the children in the env */ } pattern_finalize_config(); -- 2.39.5