]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: pollers: create the poller pipes in builds without threads
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 14 Aug 2026 14:33:10 +0000 (16:33 +0200)
committerOlivier Houchard <cognet@ci0.org>
Fri, 14 Aug 2026 14:27:04 +0000 (16:27 +0200)
commitcc0c18d82f2475507ef46a0f049bbd30d122807e
tree36ebc4a34d23fe59c428180d4c1297a97b7e35d0
parent574aa9853cd37f4226cdc166c8e24408fad64202
BUG/MEDIUM: pollers: create the poller pipes in builds without threads

Commit 5f548bc8e ("MEDIUM: pollers: Create the poller pipes before we
create the thread") creates them from setup_extra_threads(), which is an
empty stub when built without threads (e.g. TARGET=generic). The pipes
then stay uninitialized and each thread inserts fd 0 twice, hitting
BUG_ON(fdtab[fd].owner != NULL) at boot.

Move the call to haproxy.c just before setup_extra_threads() so that all
builds share the same path.
src/haproxy.c
src/thread.c