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

* io.c (io_cntl): update max file descriptor by the result of

fcntl(F_DUPFD).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2009-10-23 15:38:06 +00:00
parent 525be7f048
commit 843acddbe1
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Sat Oct 24 00:36:47 2009 Tanaka Akira <akr@fsij.org>
* io.c (io_cntl): update max file descriptor by the result of
fcntl(F_DUPFD).
Fri Oct 23 14:25:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> Fri Oct 23 14:25:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (target, target_alias): replace with real cpu. * configure.in (target, target_alias): replace with real cpu.

3
io.c
View file

@ -7237,6 +7237,9 @@ io_cntl(int fd, unsigned long cmd, long narg, int io_p)
# else # else
retval = io_p?ioctl(fd, cmd, narg):fcntl(fd, (int)cmd, narg); retval = io_p?ioctl(fd, cmd, narg):fcntl(fd, (int)cmd, narg);
# endif # endif
if (!io_p && retval != -1 && cmd == F_DUPFD) {
UPDATE_MAXFD(retval);
}
#else #else
if (!io_p) { if (!io_p) {
rb_notimplement(); rb_notimplement();