[MacRuby] #937: Rescuing Interrupt doesn't work
#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/>
#937: Rescuing Interrupt doesn't work -------------------------------------+-------------------------------------- Reporter: eloy.de.enige@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: irb -------------------------------------+-------------------------------------- Comment(by lsansonetti@…): This isn't supported in MacRuby because throwing a C++ exception within a signal handler leads to disasters. I am not sure there is a way to implement this behavior without introducing hacks. -- Ticket URL: <http://www.macruby.org/trac/ticket/937#comment:1> MacRuby <http://macruby.org/>
#937: Rescuing Interrupt doesn't work -------------------------------------+-------------------------------------- Reporter: eloy.de.enige@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby Later Component: MacRuby | Keywords: irb -------------------------------------+-------------------------------------- Changes (by lsansonetti@…): * milestone: => MacRuby Later Comment: For Later. -- Ticket URL: <http://www.macruby.org/trac/ticket/937#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby