[ruby-cvs:71624] normal:r64532 (trunk): drb: close graceful shutdown pipe before socket

normal at ruby-lang.org normal at ruby-lang.org
Sat Aug 25 11:32:15 JST 2018


normal	2018-08-25 11:32:15 +0900 (Sat, 25 Aug 2018)

  New Revision: 64532

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

  Log:
    drb: close graceful shutdown pipe before socket
    
    Closing a listen socket while entering select(2) may
    trigger IOError or even deadlock because another thread
    may give the file descriptor to another file description;
    meaning the kernel can wait on the wrong description.

  Modified files:
    trunk/lib/drb/drb.rb
    trunk/lib/drb/unix.rb


More information about the ruby-cvs mailing list