[ruby-cvs:66194] normal:r59020 (trunk): IO#close: do not enqueue redundant interrupts

normal at ruby-lang.org normal at ruby-lang.org
Tue Jun 6 09:13:47 JST 2017


normal	2017-06-06 09:13:47 +0900 (Tue, 06 Jun 2017)

  New Revision: 59020

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59020

  Log:
    IO#close: do not enqueue redundant interrupts
    
    Enqueuing multiple errors for one event causes spurious errors
    down the line, as reported by Nikolay Vashchenko in
    https://bugs.ruby-lang.org/issues/13632
    
    * thread.c (rb_notify_fd_close): do not enqueue multiple interrupts
      [ruby-core:81581] [Bug #13632]
    * test/ruby/test_io.rb (test_single_exception_on_close):
      new test based on script from Nikolay

  Modified files:
    trunk/test/ruby/test_io.rb
    trunk/thread.c


More information about the ruby-cvs mailing list