]> git.ipfire.org Git - thirdparty/systemd.git/commit
tools/test-crash-trace: do not use fixed signal numbers
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Mon, 25 May 2026 10:16:14 +0000 (12:16 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 25 May 2026 11:51:52 +0000 (12:51 +0100)
commitd8344fbf148354ccaa251d219cb095657944c1c9
tree35d6792360ffb9f044ef774a5a95eeba477259e1
parente851b0fe9d16600bca7f77c99e56ca4377760425
tools/test-crash-trace: do not use fixed signal numbers

The numbers of signals vary by arch. On the common arches the signals
listed here all use the same numbers, but people are likely to use
this on more fringe architectures too, so let's use symbolic names
instead.

Also the comment about gdb "hitting the same kill" didn't make sense.

The syntax is a bit baroque, but using a helper variable does not work.
Also shellcheck complains about $[ ] which would have made this more
legible.
tools/test-crash-trace.sh