[ruby-cvs:51663] nobu:r44518 (trunk): timeout.rb: fix for ExitException

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Jan 7 12:43:08 JST 2014


nobu	2014-01-07 12:43:08 +0900 (Tue, 07 Jan 2014)

  New Revision: 44518

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44518

  Log:
    timeout.rb: fix for ExitException
    
    * lib/timeout.rb (Timeout#timeout): should not rescue ordinarily
      raised ExitException, which should not be thrown.
    * lib/timeout.rb (Timeout::ExitException.catch): set @thread only if
      it ought to be caught.

  Modified files:
    trunk/ChangeLog
    trunk/lib/timeout.rb
    trunk/test/test_timeout.rb


More information about the ruby-cvs mailing list