Skip to content


Fix conversion from Java to Ruby objects in RubySignal.list.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Feb 5, 2015
1 parent cad0d25 commit 3c9ee7b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/src/main/java/org/jruby/
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ public static Map<String, Integer> list() {
@JRubyMethod(meta = true)
public static IRubyObject list(ThreadContext context, IRubyObject recv) {
Ruby runtime = recv.getRuntime();
RubyHash names = RubyHash.newHash(runtime, RubySignal.list(), runtime.getNil());
RubyHash names = RubyHash.newHash(runtime);
for (Map.Entry<String, Integer> sig : RubySignal.list().entrySet()) {
names.op_aset(context, runtime.newString(sig.getKey()), runtime.newFixnum(sig.getValue()));
names.op_aset(context, runtime.newString("EXIT"), runtime.newFixnum(0));
return names;
Expand Down

0 comments on commit 3c9ee7b

Please sign in to comment.