ruby-changes:53613
From: usa <ko1@a...>
Date: Tue, 20 Nov 2018 14:18:31 +0900 (JST)
Subject: [ruby-changes:53613] usa:r65829 (trunk): Simply treat IO::WaitReadable just like Errno::EAGAIN
usa 2018-11-20 14:18:28 +0900 (Tue, 20 Nov 2018) New Revision: 65829 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65829 Log: Simply treat IO::WaitReadable just like Errno::EAGAIN Modified files: trunk/bootstraptest/runner.rb Index: bootstraptest/runner.rb =================================================================== --- bootstraptest/runner.rb (revision 65828) +++ bootstraptest/runner.rb (revision 65829) @@ -383,15 +383,9 @@ def assert_finish(timeout_seconds, tests https://github.com/ruby/ruby/blob/trunk/bootstraptest/runner.rb#L383 end if io.respond_to?(:read_nonblock) if IO.select([io], nil, nil, diff) - tries = 0 begin io.read_nonblock(1024) - rescue IO::WaitReadable - IO.select([io]) - tries += 1 - break if tries > 3 - retry - rescue Errno::EAGAIN, EOFError + rescue Errno::EAGAIN, IO::WaitReadable, EOFError break end while true end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/