From 2d0493af49fa2518bb53a260e0b04bc43d9683c3 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Wed, 2 Dec 2020 21:14:51 +0000 Subject: [PATCH] BUILD/MINOR: haproxy DragonFlyBSD affinity build update. sched_setaffinity supported by this platform. --- src/haproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/haproxy.c b/src/haproxy.c index 6d17f31c4..f6236fb92 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -3426,7 +3426,7 @@ int main(int argc, char **argv) } ret = cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, -1, sizeof(cpuset), &cpuset); } -#elif defined(__linux__) +#elif defined(__linux__) || defined(__DragonFly__) sched_setaffinity(0, sizeof(unsigned long), (void *)&global.cpu_map.proc[proc]); #endif #endif