[ruby-core:87540] Re: [ruby-cvs:70799] normal:r63708 (trunk): test/ruby/test_io.rb: fix timing sensitive test

From: Eric Wong <normalperson@...>
Date: 2018-06-20 23:48:13 UTC
List: ruby-core #87540
normal@ruby-lang.org wrote:
>   https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63708
> 
>   Log:
>     test/ruby/test_io.rb: fix timing sensitive test
>     
>     For systems with sleepy timer thread disabled, the signal
>     handler does not fire soon enough and we need to ensure the
>     signal is received before we check its value.  So use a
>     self-pipe here.

I wanted to try using a Queue for this, but deadlock detection
kicked in :<   /me is not a fan of nanny features...

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next