[LTP] [PATCH] sighold02: Fix muslc builds by removing __SIGRTMIN

Cyril Hrubis chrubis@suse.cz
Mon Apr 25 13:23:06 CEST 2022


Hi!
> Ah, looking at the code "if (sig >= __SIGRTMIN && sig < SIGRTMIN)",
> we need both underscore and non-underscore.

This is code to actually skip signals used internally by libc, so
anything between 32 and SIGRTMIN. It's pretty safe to hardcode the first
value to 32 since that is the number of signals allocated by kernel
which is not going to change.

I guess that we can add something as SIGRTMIN_KERN or SIGRTMIN_BASE and
define it to 32 in some LTP header instead of hardcoding 32 into
testcases, which would be way better than misusing glibc internal
__SIGRTMIN.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list