[ruby-cvs:73031] normal:r65931 (trunk): io.c: revalidate fptr->fd after rb_io_wait_readable

normal at ruby-lang.org normal at ruby-lang.org
Fri Nov 23 07:44:06 JST 2018


normal	2018-11-23 07:44:06 +0900 (Fri, 23 Nov 2018)

  New Revision: 65931

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

  Log:
    io.c: revalidate fptr->fd after rb_io_wait_readable
    
    fptr->fd may become -1 while GVL is released in
    rb_wait_for_single_fd, so we must check it after reacquiring
    GVL.  This should avoid EBADF errors exposed by making pipes
    non-blocking by default:
    
    http://ci.rvm.jp/results/trunk-test@ruby-sky3/1473710
    
    [Bug #14968]

  Modified files:
    trunk/io.c


More information about the ruby-cvs mailing list