Skip to content

Commit

Permalink
[Runtime] CRaC: fix compile error in Alpine Linux
Browse files Browse the repository at this point in the history
Summary: There no __SIGRTMIN macro in Alpine Linux

Testing: All CRaC testcases.

Reviewers: Accelerator1996, denghui.ddh

Issue: #867
  • Loading branch information
lingjun-cg committed Oct 31, 2024
1 parent ca29f16 commit 9f93153
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/java.base/share/native/launcher/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9f93153

Please sign in to comment.