mirror of
https://github.com/ruby/ruby.git
synced 2026-10-29 17:06:21 +08: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:
1 parent
5e7fa03bc0
commit
2574b80d83
2 files changed
+6
No files matched your search
@@ -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>
|
||||
|
||||
* thread.c (rb_gc_mark_threads): remove deprecated function.
|
||||
|
||||
@@ -52,6 +52,7 @@ rsock_init_sock(VALUE sock, int fd)
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user