]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEBUG: deduplicate __ABORT_NOW() between DEBUG_USE_ABORT and ha_crash_now()
authorWilly Tarreau <w@1wt.eu>
Mon, 10 Aug 2026 14:31:14 +0000 (16:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Aug 2026 15:43:30 +0000 (17:43 +0200)
commit4e29ff0ec76a8dad256e8f06950a99b0ea7f8fb9
treeda47fbe476d57f9ffb924a75497d392a7fd53ca7
parent52698abae98e1d210d326c431d6cf1ef56c9e57a
DEBUG: deduplicate __ABORT_NOW() between DEBUG_USE_ABORT and ha_crash_now()

The __ABORT_NOW() macro is defined for the two modes with a single,
insignificant difference, which is how to crash. Given that there's
already an #ifdef for the abort case, better make that macro point
to ha_crash_now() for the default case and eliminate one of the
definitions. This code is sufficiently difficult to read to avoid this.
include/haproxy/bug.h