[ruby-cvs:64365] nobu:r57199 (trunk): io.c: fix race between read and close

nobu at ruby-lang.org nobu at ruby-lang.org
Mon Dec 26 23:14:18 JST 2016


nobu	2016-12-26 23:14:18 +0900 (Mon, 26 Dec 2016)

  New Revision: 57199

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

  Log:
    io.c: fix race between read and close
    
    * io.c (io_fillbuf): fix race between read and close, in the case
      the IO gets closed before the reading thread achieve the lock.
      [ruby-core:78845] [Bug #13076]

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


More information about the ruby-cvs mailing list