mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
io.c: use io_close to close ARGF
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2fbc63b8a8
commit
a757aa142b
1 changed files with 1 additions and 1 deletions
2
io.c
2
io.c
|
@ -7986,7 +7986,7 @@ argf_close(VALUE argf)
|
|||
if (RB_TYPE_P(file, T_FILE)) {
|
||||
rb_io_set_write_io(file, Qnil);
|
||||
}
|
||||
rb_funcall3(file, rb_intern("close"), 0, 0);
|
||||
io_close(file);
|
||||
ARGF.init_p = -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue