Re: [MacRuby] #176: timeout fails to raise a Timeout::Error
#176: timeout fails to raise a Timeout::Error ---------------------------------+------------------------------------------ Reporter: acangiano@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ---------------------------------+------------------------------------------ Comment(by lsansonetti@…): I can see 2 problems. First, the {{{1+1 while true}}} expression will never trigger a pthread cancelation point, which means it can't be interrupted (and timeout.rb uses thread cancelation). Second, it looks like current timeout.rb doesn't even cancel {{{loop { 1+1 }}}} which triggers cancelation points. Your patch seems to fix the second problem. I don't believe the first problem is even fixable with the current macruby implementation. -- Ticket URL: <http://www.macruby.org/trac/ticket/176#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby