]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEV: ncpu: implement a wrapper mode
authorWilly Tarreau <w@1wt.eu>
Wed, 8 Jan 2025 08:04:09 +0000 (09:04 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 8 Jan 2025 10:26:05 +0000 (11:26 +0100)
commit3fdf875716b294ffecbb792a34c64b43ab4c3aeb
tree77811bf29d78e89dbaf11f8ac6a576f64e01b729
parent25c08562cbec3fe7c4514db3baaf085475e79395
DEV: ncpu: implement a wrapper mode

The wrapper mode allows to present itself as LD_PRELOAD before loading
haproxy, which is often more convenient since it allows to pass the
number of CPUs in argument. However, this mode is no longer supported by
modern glibcs, so a future patch will come to implement a trick that was
tested to work at least on x86.
dev/ncpu/ncpu.c