зеркало из https://github.com/github/ruby.git
* io.c (popen_exec): close file descriptors other than standard I/Os.
fixed: [ruby-dev:28924] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
e382c5dde3
Коммит
3dd092d0ce
|
@ -1,3 +1,8 @@
|
|||
Mon Jul 3 10:44:01 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* io.c (popen_exec): close file descriptors other than standard I/Os.
|
||||
fixed: [ruby-dev:28924]
|
||||
|
||||
Mon Jul 3 05:15:29 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||
|
||||
* test/openssl/test_asn1.c: String#[]= doesnt't accept Integer.
|
||||
|
@ -26,7 +31,7 @@ Sun Jul 2 18:42:27 2006 Minero Aoki <aamine@loveruby.net>
|
|||
|
||||
Sun Jul 2 11:22:03 2006 Tanaka Akira <akr@m17n.org>
|
||||
|
||||
* io.c (io_reopen): STDOUT.reopen(filename, "w+") didn't work.
|
||||
* io.c (io_reopen): STDOUT.reopen(filename, "w+") didn't work.
|
||||
(rb_io_reopen): STDOUT.reopen(File.open(filename, "w+")) didn't work.
|
||||
|
||||
Sat Jul 1 23:55:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
|
4
io.c
4
io.c
|
@ -2950,11 +2950,7 @@ popen_exec(void *pp)
|
|||
|
||||
popen_redirect(p);
|
||||
for (fd = 3; fd < NOFILE; fd++) {
|
||||
#ifdef FD_CLOEXEC
|
||||
fcntl(fd, F_SETFL, FD_CLOEXEC);
|
||||
#else
|
||||
close(fd);
|
||||
#endif
|
||||
}
|
||||
return rb_exec(&p->exec);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче