diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | io.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Wed Oct 2 16:26:49 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * io.c (rb_io_close_read): duplex IO should wait its child process + even after close_read. + Wed Oct 2 15:39:13 2013 NARUSE, Yui <naruse@ruby-lang.org> * vm_core.h: use __has_attribute() instead of __clang__major__ because @@ -4433,6 +4433,8 @@ rb_io_close_read(VALUE io) if (io != write_io) { rb_io_t *wfptr; GetOpenFile(write_io, wfptr); + wfptr->pid = fptr->pid; + fptr->pid = 0; RFILE(io)->fptr = wfptr; /* bind to write_io temporarily to get rid of memory/fd leak */ fptr->tied_io_for_writing = 0; |