]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: pollers: really create the poller pipes in builds without threads
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 18 Aug 2026 12:31:00 +0000 (14:31 +0200)
committerOlivier Houchard <cognet@ci0.org>
Tue, 18 Aug 2026 12:24:03 +0000 (14:24 +0200)
commitc71f45a0a48b0f914f238b770631e6792f6ed917
tree4ecd69779254879e5742f4960889b6d4b1731f51
parentccb44533c0150cd66e31479cbcfdff679606a9b1
BUG/MEDIUM: pollers: really create the poller pipes in builds without threads

Commit c5f41118c ("BUG/MEDIUM: tasks: don't type-pun state and tid in
builds without threads") was mangled when committed: instead of the task
fix its message describes, its content accidentally reverted commit
cc0c18d82 ("BUG/MEDIUM: pollers: create the poller pipes in builds
without threads"), moving the fd_precreate_poller_pipes() call back into
setup_extra_threads(), an empty stub without threads. Builds made with
USE_THREAD unset (e.g. TARGET=generic) thus abort again on startup on
BUG_ON(fdtab[fd].owner) when inserting the poller pipes.

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