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; }