ruby-changes:13661
From: akr <ko1@a...>
Date: Sat, 24 Oct 2009 00:38:21 +0900 (JST)
Subject: [ruby-changes:13661] Ruby:r25446 (trunk): * io.c (io_cntl): update max file descriptor by the result of
akr 2009-10-24 00:38:06 +0900 (Sat, 24 Oct 2009) New Revision: 25446 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25446 Log: * io.c (io_cntl): update max file descriptor by the result of fcntl(F_DUPFD). Modified files: trunk/ChangeLog trunk/io.c Index: ChangeLog =================================================================== --- ChangeLog (revision 25445) +++ ChangeLog (revision 25446) @@ -1,3 +1,8 @@ +Sat Oct 24 00:36:47 2009 Tanaka Akira <akr@f...> + + * 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@r...> * configure.in (target, target_alias): replace with real cpu. Index: io.c =================================================================== --- io.c (revision 25445) +++ io.c (revision 25446) @@ -7237,6 +7237,9 @@ # else retval = io_p?ioctl(fd, cmd, narg):fcntl(fd, (int)cmd, narg); # endif + if (!io_p && retval != -1 && cmd == F_DUPFD) { + UPDATE_MAXFD(retval); + } #else if (!io_p) { rb_notimplement(); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/