[MacRuby] #176: timeout fails to raise a Timeout::Error

MacRuby ruby-noreply at macosforge.org
Fri Aug 20 13:39:41 PDT 2010


#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/>



More information about the macruby-tickets mailing list