зеркало из https://github.com/github/ruby.git
* io.c (rb_io_reopen): call rb_fd_fix_cloexec instead of
rb_maygvl_fd_fix_cloexec. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
89a1258110
Коммит
809006f407
|
@ -1,3 +1,8 @@
|
|||
Tue Nov 1 19:49:08 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* io.c (rb_io_reopen): call rb_fd_fix_cloexec instead of
|
||||
rb_maygvl_fd_fix_cloexec.
|
||||
|
||||
Tue Nov 1 19:00:30 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* io.c (rb_io_reopen): call rb_maygvl_fd_fix_cloexec after freopen().
|
||||
|
|
2
io.c
2
io.c
|
@ -6059,7 +6059,7 @@ rb_io_reopen(int argc, VALUE *argv, VALUE file)
|
|||
rb_sys_fail_path(fptr->pathv);
|
||||
}
|
||||
fptr->fd = fileno(fptr->stdio_file);
|
||||
rb_maygvl_fd_fix_cloexec(fptr->fd);
|
||||
rb_fd_fix_cloexec(fptr->fd);
|
||||
#ifdef USE_SETVBUF
|
||||
if (setvbuf(fptr->stdio_file, NULL, _IOFBF, 0) != 0)
|
||||
rb_warn("setvbuf() can't be honoured for %s", RSTRING_PTR(fptr->pathv));
|
||||
|
|
Загрузка…
Ссылка в новой задаче