]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: thread: add is_thread_harmless() to know if a thread already is harmless
authorWilly Tarreau <w@1wt.eu>
Fri, 1 Jul 2022 15:11:03 +0000 (17:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 Jul 2022 17:26:35 +0000 (19:26 +0200)
commita2b8ed4b440786eefaf6f783a5a003c3f079126a
tree053819871368995b563532cd3d8f51a23d6212a1
parent598cf3f22ee9a28950bb8078f150bc431f4623e3
MINOR: thread: add is_thread_harmless() to know if a thread already is harmless

The harmless status is not re-entrant, so sometimes for signal handling
it can be useful to know if we're already harmless or not. Let's add a
function doing that, and make the debugger use it instead of manipulating
the harmless mask.
include/haproxy/thread.h
src/debug.c