ruby-changes:24411
From: usa <ko1@a...>
Date: Thu, 19 Jul 2012 14:20:24 +0900 (JST)
Subject: [ruby-changes:24411] usa:r36462 (trunk): * ext/socket/init.c (rsock_init_sock): need to update max fd on all
usa 2012-07-19 14:20:08 +0900 (Thu, 19 Jul 2012) New Revision: 36462 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36462 Log: * ext/socket/init.c (rsock_init_sock): need to update max fd on all platforms. Modified files: trunk/ChangeLog trunk/ext/socket/init.c Index: ChangeLog =================================================================== --- ChangeLog (revision 36461) +++ ChangeLog (revision 36462) @@ -1,3 +1,8 @@ +Thu Jul 19 14:18:22 2012 NAKAMURA Usaku <usa@r...> + + * ext/socket/init.c (rsock_init_sock): need to update max fd on all + platforms. + Thu Jul 19 14:15:48 2012 Nobuyoshi Nakada <nobu@r...> * thread.c (rb_gc_mark_threads): remove deprecated function. Index: ext/socket/init.c =================================================================== --- ext/socket/init.c (revision 36461) +++ ext/socket/init.c (revision 36462) @@ -52,6 +52,7 @@ if (!S_ISSOCK(sbuf.st_mode)) rb_raise(rb_eArgError, "not a socket file descriptor"); #else + rb_update_max_fd(fd); if (!rb_w32_is_socket(fd)) rb_raise(rb_eArgError, "not a socket file descriptor"); #endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/