1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* io.c (io_reopen): [ruby-dev:25150]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2004-12-10 15:13:07 +00:00
parent 5e10aeb3b8
commit 0ed07fb125
2 changed files with 5 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Sat Dec 11 00:10:18 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
* io.c (io_reopen): [ruby-dev:25150]
Fri Dec 10 08:39:27 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/socket/socket.c (sock_listen): get OpenFile just before calling

1
io.c
View file

@ -3172,6 +3172,7 @@ io_reopen(io, nfile)
}
else {
fclose(fptr->f);
fptr->f = NULL;
if (dup2(fd2, fd) < 0)
rb_sys_fail(orig->path);
fptr->f = rb_fdopen(fd, mode);