]> git.ipfire.org Git - thirdparty/util-linux.git/commit
ts/kill/decode: use RTMIN from 'kill -L' instead of hardcoding 34
authorChen Qi <Qi.Chen@windriver.com>
Wed, 4 Jun 2025 08:27:19 +0000 (16:27 +0800)
committerChen Qi <Qi.Chen@windriver.com>
Mon, 9 Jun 2025 05:22:32 +0000 (13:22 +0800)
commitc5d5e8873029d170fcab38a6fbd5d5a355574b9f
treeddcd2ca18deef3b071e255fe196633f65ad69d8a
parent4a6fc2f8c31cde5d36cf5ade2c68e5f558b09280
ts/kill/decode: use RTMIN from 'kill -L' instead of hardcoding 34

glibc uses 34 as the value of SIGRTMIN:
https://sourceware.org/git/?p=glibc.git;a=blob;f=signal/allocrtsig.c;h=8ed8e37dd6c41f94be6eef042ce9db1af1153228;hb=HEAD#l27 """
static int current_rtmin = __SIGRTMIN + RESERVED_SIGRT; """

musl uses 35 as the value of SIGRTMIN:
https://git.musl-libc.org/cgit/musl/tree/src/signal/sigrtmin.c

With the hardcoded 34, test case fails with the following difference:

-Ignored: HUP QUIT TRAP PIPE ALRM
+Ignored: HUP QUIT TRAP PIPE ALRM 34

Extract the value of RTMIN from 'kill -L' to avoid such hardcoding.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
tests/ts/kill/decode