summaryrefslogtreecommitdiff
path: root/ext/socket/init.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-19 05:20:08 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-19 05:20:08 +0000
commit2574b80d837d81406e9391617d579c94de9baec0 (patch)
tree99f6eae89806d7134a0ccd404284819234217461 /ext/socket/init.c
parent5e7fa03bc0acf3c795d4dcc984ef62272e495736 (diff)
* 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
Diffstat (limited to 'ext/socket/init.c')
-rw-r--r--ext/socket/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/socket/init.c b/ext/socket/init.c
index 990f1a4..696b62d 100644
--- a/ext/socket/init.c
+++ b/ext/socket/init.c
@@ -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