Skip to content

Commit

Permalink
Less silly name for a signal number.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Feb 5, 2015
1 parent 3c9ee7b commit 1993f47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/main/java/org/jruby/RubySignal.java
Expand Up @@ -68,15 +68,15 @@ public static Map<String, Integer> list() {
continue;

// replace CLD with CHLD value
int longValue = s.intValue();
int signo = s.intValue();
if (s == Signal.SIGCLD)
longValue = Signal.SIGCHLD.intValue();
signo = Signal.SIGCHLD.intValue();

// omit unsupported signals
if (longValue >= 20000)
if (signo >= 20000)
continue;

signals.put(s.description().substring("SIG".length()), longValue);
signals.put(s.description().substring("SIG".length()), signo);
}

return signals;
Expand Down

0 comments on commit 1993f47

Please sign in to comment.