public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] sighold02: Fix muslc builds by removing __SIGRTMIN
@ 2022-04-25  9:21 Richard Palethorpe via ltp
  2022-04-25  9:35 ` Cyril Hrubis
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Palethorpe via ltp @ 2022-04-25  9:21 UTC (permalink / raw)
  To: ltp; +Cc: Richard Palethorpe

The minimum real-time signal is always 32 according to
signal(7). Meanwhile __SIGRTMIN is not defined in all lib C
implementations.

Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
---
 testcases/kernel/syscalls/sighold/sighold02.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/syscalls/sighold/sighold02.c b/testcases/kernel/syscalls/sighold/sighold02.c
index daa86192e..1cfb7688b 100644
--- a/testcases/kernel/syscalls/sighold/sighold02.c
+++ b/testcases/kernel/syscalls/sighold/sighold02.c
@@ -33,7 +33,7 @@ static int sigs_map[NUMSIGS];
 
 static int skip_sig(int sig)
 {
-	if (sig >= __SIGRTMIN && sig < SIGRTMIN)
+	if (sig >= 32 && sig < SIGRTMIN)
 		return 1;
 
 	switch (sig) {
-- 
2.35.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-04-27  7:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-25  9:21 [LTP] [PATCH] sighold02: Fix muslc builds by removing __SIGRTMIN Richard Palethorpe via ltp
2022-04-25  9:35 ` Cyril Hrubis
2022-04-25 11:08   ` Petr Vorel
2022-04-25 11:09     ` Petr Vorel
2022-04-25 11:23       ` Cyril Hrubis
2022-04-27  7:57         ` Petr Vorel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox