[MacRuby] #937: Rescuing Interrupt doesn't work
MacRuby
ruby-noreply at macosforge.org
Wed Oct 6 15:05:22 PDT 2010
#937: Rescuing Interrupt doesn't work
-------------------------------------+--------------------------------------
Reporter: eloy.de.enige@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords: irb
-------------------------------------+--------------------------------------
This is needed by IRB and used to work, iirc:
{{{
% macruby -e 'begin; loop {}; rescue Interrupt; p :ok; end'
^C
% ruby19 -e 'begin; loop {}; rescue Interrupt; p :ok; end'
^C:ok
}}}
Trap does work, though.
{{{
% macruby -e 'trap("SIGINT") { p :ok; exit }; loop {}'
^C:ok
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/937>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list