From 9f93153431af768da33b54dd4e6b3e98d841e4b8 Mon Sep 17 00:00:00 2001 From: "lingjun.cg" Date: Thu, 31 Oct 2024 18:58:35 +0800 Subject: [PATCH] [Runtime] CRaC: fix compile error in Alpine Linux Summary: There no __SIGRTMIN macro in Alpine Linux Testing: All CRaC testcases. Reviewers: Accelerator1996, denghui.ddh Issue: https://github.com/dragonwell-project/dragonwell11/issues/867 --- src/java.base/share/native/launcher/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/java.base/share/native/launcher/main.c b/src/java.base/share/native/launcher/main.c index 4db5f09886e..63111f9300f 100644 --- a/src/java.base/share/native/launcher/main.c +++ b/src/java.base/share/native/launcher/main.c @@ -152,7 +152,8 @@ static void setup_sighandler() { sigact.sa_flags = SA_SIGINFO; sigact.sa_sigaction = sighandler; - for (int sig = 1; sig < __SIGRTMIN; ++sig) { + const int MaxSignalValue = 31; + for (int sig = 1; sig <= MaxSignalValue; ++sig) { if (sig == SIGKILL || sig == SIGSTOP) { continue; }