]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: threads: set threads_idle and threads_harmless even with no threads
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Apr 2025 07:03:35 +0000 (09:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Apr 2025 14:25:47 +0000 (16:25 +0200)
commit337017e2f96deea8e762d968820e575a1c2181b6
treed28b00467184758af3e8c192360bb45883360f69
parentf499fa3dcd24b5a17ed97842f5e867bd37739754
BUG/MINOR: threads: set threads_idle and threads_harmless even with no threads

Some signal handlers rely on these to decide about the level of detail to
provide in dumps, so let's properly fill the info about entering/leaving
idle. Note that for consistency with other tests we're using bitops with
t->ltid_bit, while we could simply assign 0/1 to the fields. But it makes
the code more readable and the whole difference is only 88 bytes on a 3MB
executable.

This bug is not important, and while older versions are likely affected
as well, it's not worth taking the risk to backport this in case it would
wake up an obscure bug.
include/haproxy/thread.h