]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEV: ncpu: also emulate sysconf() for _SC_NPROCESSORS_*
authorWilly Tarreau <w@1wt.eu>
Thu, 13 Mar 2025 12:35:30 +0000 (13:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 17:30:30 +0000 (18:30 +0100)
commit0ceb1f2c515ca437a7ccc9841f647bcd2ac89757
tree23bd0a67bbc2573e56855ee92294b0ecf6b93474
parented75148ca0479c7f87e1c149f0b5f0c8dd50eb3c
DEV: ncpu: also emulate sysconf() for _SC_NPROCESSORS_*

This is also needed in order to make the requested number of CPUs
appear. For now we don't reroute to the original sysconf() call so
we return -1,EINVAL for all other info.
dev/ncpu/ncpu.c