[ruby-cvs:50286] nagachika:r43144 (ruby_2_0_0): merge revision(s) 43112, 43114, 43117, 43118: [Backport #8980]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Sat Oct 5 02:30:53 JST 2013


nagachika	2013-10-05 02:30:50 +0900 (Sat, 05 Oct 2013)

  New Revision: 43144

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

  Log:
    merge revision(s) 43112,43114,43117,43118: [Backport #8980]
    
    * io.c (rb_io_close_read): keep fptr in write_io to be discarded, to
      fix freed pointer access when it is in use by other threads, and get
      rid of potential memory/fd leak.
    
    * io.c (rb_io_close_write): detach tied IO for writing before closing
      to get rid of race condition.  [ruby-list:49598]
    
    * io.c (rb_io_close_read): duplex IO should wait its child process
      even after close_read.

  Modified directories:
    branches/ruby_2_0_0/
  Modified files:
    branches/ruby_2_0_0/ChangeLog
    branches/ruby_2_0_0/io.c
    branches/ruby_2_0_0/test/ruby/test_io.rb
    branches/ruby_2_0_0/version.h


More information about the ruby-cvs mailing list