From: Willy Tarreau Date: Fri, 11 Jun 2021 15:28:19 +0000 (+0200) Subject: BUILD: init: remove initialization of multi-process thread mappings X-Git-Tag: v2.5-dev1~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ae1d1eab9fa19d49b2e75aa60685dd5d892dc82;p=thirdparty%2Fhaproxy.git BUILD: init: remove initialization of multi-process thread mappings This broke the build with recent compilers and is not used anyway. --- diff --git a/src/haproxy.c b/src/haproxy.c index e975dc8be1..41d481c2b4 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -3460,11 +3460,6 @@ int main(int argc, char **argv) #ifdef USE_CPU_AFFINITY /* Now the CPU affinity for all threads */ - /* If on multiprocess, use proc_t1 except for the first process. - */ - if ((relative_pid - 1) > 0) - cpu_map.thread[0] = cpu_map.proc_t1[relative_pid-1]; - for (i = 0; i < global.nbthread; i++) { if (ha_cpuset_count(&cpu_map.proc[relative_pid-1])) ha_cpuset_and(&cpu_map.thread[i], &cpu_map.proc[relative_pid-1]);