From 2672eb987a131f3e9761b51feed8b889d1fcf47a Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Fri, 14 Dec 2018 15:52:39 +0100 Subject: [PATCH] MINOR: mworker: set all_threads_mask and pid_bit to 1 Reinit the all_threads_mask and pid_bit to 1 before the master polling loop, this process is monothread. --- src/haproxy.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/haproxy.c b/src/haproxy.c index 4af888073..0fa07ce4e 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -904,6 +904,11 @@ static void mworker_loop() relative_pid = 1; pid_bit = 1; +#ifdef USE_THREAD + tid_bit = 1; + all_threads_mask = 1; +#endif + jobs++; /* this is the "master" job, we want to take care of the signals even if there is no listener so the poll loop don't leave */