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

* ext/socket/init.c (rsock_init_sock): need to update max fd on all

platforms.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2012-07-19 05:20:08 +00:00
parent 5e7fa03bc0
commit 2574b80d83
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Thu Jul 19 14:18:22 2012 NAKAMURA Usaku <usa@ruby-lang.org>
* 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@ruby-lang.org> Thu Jul 19 14:15:48 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* thread.c (rb_gc_mark_threads): remove deprecated function. * thread.c (rb_gc_mark_threads): remove deprecated function.

View file

@ -52,6 +52,7 @@ rsock_init_sock(VALUE sock, int fd)
if (!S_ISSOCK(sbuf.st_mode)) if (!S_ISSOCK(sbuf.st_mode))
rb_raise(rb_eArgError, "not a socket file descriptor"); rb_raise(rb_eArgError, "not a socket file descriptor");
#else #else
rb_update_max_fd(fd);
if (!rb_w32_is_socket(fd)) if (!rb_w32_is_socket(fd))
rb_raise(rb_eArgError, "not a socket file descriptor"); rb_raise(rb_eArgError, "not a socket file descriptor");
#endif #endif