return ((JRubySignalHandler)oldHandler).block;
} else {
return RubyProc.newProc(recv.getRuntime(), CallBlock.newCallClosure(recv, (RubyModule)recv,
Arity.noArguments(), new BlockCallback(){
public IRubyObject call(ThreadContext context, IRubyObject[] args, Block block) {
oldHandler.handle(new Signal(handler.signal));
return recv.getRuntime().getNil();
}
}, recv.getRuntime().getCurrentContext()), Block.Type.NORMAL);
}
}