Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/main/java/org/jruby/RubySignal.java
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 1993f47

Please sign in to comment.