From: William Lallemand Date: Fri, 14 Dec 2018 14:52:39 +0000 (+0100) Subject: MINOR: mworker: set all_threads_mask and pid_bit to 1 X-Git-Tag: v1.9-dev11~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2672eb987a131f3e9761b51feed8b889d1fcf47a;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/haproxy.c b/src/haproxy.c index 4af888073a..0fa07ce4e6 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 */