[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


    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:

More information about the ruby-cvs mailing list