MINOR: init: Fix CPU affinity setting on FreeBSD.
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 16 Aug 2017 15:29:11 +0000 (17:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Aug 2017 16:39:52 +0000 (18:39 +0200)
commit97148f60b8feec39b76768d1bcfab6d755c12164
treeb8b3b91dfb2718a7acd1c22590a18747e0d4839c
parent0d00593361b91017b894c4c7d5e24721a7838d6e
MINOR: init: Fix CPU affinity setting on FreeBSD.

Use a cpuset_t instead of assuming the cpu mask is an unsigned long.
This should fix setting the CPU affinity on FreeBSD >= 11.

This patch should be backported to stable releases.
src/haproxy.c