diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-19 05:20:08 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-19 05:20:08 +0000 |
commit | 2574b80d837d81406e9391617d579c94de9baec0 (patch) | |
tree | 99f6eae89806d7134a0ccd404284819234217461 /ext/socket | |
parent | 5e7fa03bc0acf3c795d4dcc984ef62272e495736 (diff) | |
download | ruby-2574b80d837d81406e9391617d579c94de9baec0.tar.gz |
* 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')
-rw-r--r-- | ext/socket/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/socket/init.c b/ext/socket/init.c index 990f1a4d6b..696b62d82a 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 |