Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java: incorrect signal numbers #54

Open
jamesjer opened this issue Oct 22, 2020 · 1 comment
Open

Java: incorrect signal numbers #54

jamesjer opened this issue Oct 22, 2020 · 1 comment

Comments

@jamesjer
Copy link
Contributor

I was just looking at the signal numbers in runtime/Jlib/foreign.java. The values for SIGQUIT and SIGINT are reversed, and several of the others are system-dependent. For example, the values of signals up to number 31 would look like this on BSD systems:

   public static final int SIGHUP = 1;
   public static final int SIGINT = 2;
   public static final int SIGQUIT = 3;
   public static final int SIGILL = 4;
   public static final int SIGTRAP = 5;
   public static final int SIGABRT = 6;
   public static final int SIGEMT = 7;
   public static final int SIGFPE = 8;
   public static final int SIGKILL = 9;
   public static final int SIGBUS = 10;
   public static final int SIGSEGV = 11;
   public static final int SIGSYS = 12;
   public static final int SIGPIPE = 13;
   public static final int SIGALRM = 14;
   public static final int SIGTERM = 15;
   public static final int SIGURG = 16;
   public static final int SIGSTOP = 17;
   public static final int SIGTSTP = 18;
   public static final int SIGCONT = 19;
   public static final int SIGCHLD = 20;
   public static final int SIGTTIN = 21;
   public static final int SIGTTOU = 22;
   public static final int SIGIO = 23;
   public static final int SIGXCPU = 24;
   public static final int SIGXFSZ = 25;
   public static final int SIGVTALRM = 26;
   public static final int SIGPROF = 27;
   public static final int SIGWINCH = 28;
   public static final int SIGINFO = 29;
   public static final int SIGUSR1 = 30;
   public static final int SIGUSR2 = 31;

and like this on Linux systems:

   public static final int SIGHUP = 1;
   public static final int SIGINT = 2;
   public static final int SIGQUIT = 3;
   public static final int SIGILL = 4;
   public static final int SIGTRAP = 5;
   public static final int SIGABRT = 6;
   public static final int SIGBUS = 7;
   public static final int SIGFPE = 8;
   public static final int SIGKILL = 9;
   public static final int SIGUSR1 = 10;
   public static final int SIGSEGV = 11;
   public static final int SIGUSR2 = 12;
   public static final int SIGPIPE = 13;
   public static final int SIGALRM = 14;
   public static final int SIGTERM = 15;
   public static final int SIGSTKFLT = 16;
   public static final int SIGCHLD = 17;
   public static final int SIGCONT = 18;
   public static final int SIGSTOP = 19;
   public static final int SIGTSTP = 20;
   public static final int SIGTTIN = 21;
   public static final int SIGTTOU = 22;
   public static final int SIGURG = 23;
   public static final int SIGXCPU = 24;
   public static final int SIGXFSZ = 25;
   public static final int SIGVTALRM = 26;
   public static final int SIGPROF = 27;
   public static final int SIGWINCH = 28;
   public static final int SIGPOLL = 29;
   public static final int SIGPWR = 30;
   public static final int SIGSYS = 31;
@manuel-serrano
Copy link
Owner

Hi Jerry,

I realized that I have never answered your comment. Actually, I don't know how to address the problem you are mentioning.
Do you have suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants