]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: threads: Be sure to remove threads from all_threads_mask on exit
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 21 Jun 2018 07:57:39 +0000 (09:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 22 Jun 2018 12:55:15 +0000 (14:55 +0200)
commitba86c6c25bf252e44589ae2b4d51a67c4f47d244
tree5bb09f536185bc056c6e1edf5ba4caf5af27f18c
parentd8fd2af8826c2d33b23c4ef64b88ecd57910e330
MINOR: threads: Be sure to remove threads from all_threads_mask on exit

When HAProxy is started with several threads, Each running thread holds a bit in
the bitfiled all_threads_mask. This bitfield is used here and there to check
which threads are registered to take part in a specific processing. So when a
thread exits, it seems normal to remove it from all_threads_mask.

No direct impact could be identified with this right now but it would
be better to backport it to 1.8 as a preventive measure to avoid complex
situations like the one in previous bug.
src/haproxy.c