mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
BUILD: init: remove initialization of multi-process thread mappings
This broke the build with recent compilers and is not used anyway.
This commit is contained in:
parent
b63dbb7b2e
commit
3ae1d1eab9
@ -3460,11 +3460,6 @@ int main(int argc, char **argv)
|
|||||||
#ifdef USE_CPU_AFFINITY
|
#ifdef USE_CPU_AFFINITY
|
||||||
/* Now the CPU affinity for all threads */
|
/* 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++) {
|
for (i = 0; i < global.nbthread; i++) {
|
||||||
if (ha_cpuset_count(&cpu_map.proc[relative_pid-1]))
|
if (ha_cpuset_count(&cpu_map.proc[relative_pid-1]))
|
||||||
ha_cpuset_and(&cpu_map.thread[i], &cpu_map.proc[relative_pid-1]);
|
ha_cpuset_and(&cpu_map.thread[i], &cpu_map.proc[relative_pid-1]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user