[ruby-cvs:54693] usa:r47545 (ruby_2_0_0): merge revision(s) 43373: [Backport #9036]

usa at ruby-lang.org usa at ruby-lang.org
Fri Sep 12 11:20:07 JST 2014


usa	2014-09-12 11:20:06 +0900 (Fri, 12 Sep 2014)

  New Revision: 47545

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

  Log:
    merge revision(s) 43373: [Backport #9036]
    
    * io.c (rb_io_reopen): create a new, temporary FD via rb_sysopen and
      call rb_cloexec_dup2 on it to atomically replace the file fptr->fd
      points to.  This leaves no possible window where fptr->fd is invalid
      to userspace (even for any threads running w/o GVL).  based on the
      patch by Eric Wong <normalperson at yhbt.net> at [ruby-core:57943].
      [Bug #9036]

  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/version.h


More information about the ruby-cvs mailing list