Motohiro KOSAKI <kosaki.motohiro / gmail.com> wrote:
> Eric, I commited slightly modified version because your patch couldn't
> apply for latest trunk. Could you please confirm it?

Thanks, looks like you missed the following hunk in rb_io_reopen():

diff --git a/io.c b/io.c
index 7ce7148..0c1593b 100644
--- a/io.c
+++ b/io.c
@@ -5930,7 +5930,7 @@ rb_io_reopen(int argc, VALUE *argv, VALUE file)
 #endif
     }
     else {
-        if (close(fptr->fd) < 0)
+        if (maygvl_close(fptr->fd, 0) < 0)
             rb_sys_fail_path(fptr->pathv);
         fptr->fd = -1;
         fptr->fd = rb_sysopen(fptr->pathv, oflags, 0666);
-- 
Eric Wong