[ruby-cvs:53442] akr:r46290 (trunk): Join threads before close pipes.

akr at ruby-lang.org akr at ruby-lang.org
Sun Jun 1 08:54:12 JST 2014


akr	2014-06-01 08:54:12 +0900 (Sun, 01 Jun 2014)

  New Revision: 46290

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

  Log:
    Join threads before close pipes.
    
    closing a FD interrupts threads which uses the FD.
    rb_thread_io_blocking_region (for write()) checks an interrupt after write() is finished.
    So, joining the thread after closing() may raise "IOError: stream closed".

  Modified files:
    trunk/test/ruby/test_marshal.rb


More information about the ruby-cvs mailing list