From: Eric Wong Date: 2011-04-05T03:40:21+09:00 Subject: [ruby-core:35610] Re: [Ruby 1.9 - Bug #4527][Closed] [PATCH] IO#close releases GVL if possible Motohiro KOSAKI 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