]> git.ipfire.org Git - thirdparty/haproxy.git/commit
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>
Mon, 24 Feb 2025 12:37:52 +0000 (13:37 +0100)
commitfb7874c286dbe1594837fc75b9e96783dfe160f5
tree4368da75bb7c0914a6a83427bcdb919d804f6d75
parentbbf824933f71eca90b5f07a51fa93f4fa7ac2256
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.
include/haproxy/tinfo-t.h
src/debug.c
src/stream.c
src/wdt.c