MINOR: tinfo: split the signal handler report flags into 3
authorWilly Tarreau <w@1wt.eu>
Mon, 24 Feb 2025 12:37:52 +0000 (13:37 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 20 Mar 2025 10:12:27 +0000 (11:12 +0100)
commit88b97519ab35e851888761960ac64dd10614ae86
tree11a2d3de93dfabc108ec6d4f013cbe9bf0a48bbd
parent71f66d03bd199b326b7231cbe6fe40f60251bb1c
MINOR: tinfo: split the signal handler report flags into 3

While signals are not recursive, one signal (e.g. wdt) may interrupt
another one (e.g. debug). The problem this causes is that when leaving
the inner handler, it removes the outer's flag, hence the protection
that comes with it. Let's just have 3 distinct flags for regular signals,
debug signal and watchdog signal. We add a 4th definition which is an
aggregate of the 3 to ease testing.

(cherry picked from commit fb7874c286dbe1594837fc75b9e96783dfe160f5)
Signed-off-by: Willy Tarreau <w@1wt.eu>
include/haproxy/tinfo-t.h
src/debug.c
src/stream.c
src/wdt.c