[ruby-cvs:72932] normal:r65832 (trunk): thread_pthread.c (rb_reserved_fd_p): false-positive on negative FD

normal at ruby-lang.org normal at ruby-lang.org
Tue Nov 20 16:27:28 JST 2018


normal	2018-11-20 16:27:28 +0900 (Tue, 20 Nov 2018)

  New Revision: 65832

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

  Log:
    thread_pthread.c (rb_reserved_fd_p): false-positive on negative FD
    
    Negative-numbered FDs are never valid FDs on POSIX-like
    platforms, and we initialize our self-pipes/eventfd values
    to "-1", so stop treating -1 as a reserved FD if our system
    is too low on resources to allocate FDs at startup.

  Modified files:
    trunk/thread_pthread.c


More information about the ruby-cvs mailing list