summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-07 02:04:00 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-07 02:04:00 +0000
commit9b0e00079e73268d6b40b1664ba001690c07df74 (patch)
treeb422ed9a0bb5ef6a23d878ae83c9dcf2cc67fc78
parentb379d340dbc6f47c42b3a1e07d291afce227628b (diff)
* ext/socket/socket.c (bsock_setsockopt): [ruby-dev:25039]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/socket/socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index 6a1d43ca31..975c0525e3 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -295,6 +295,7 @@ bsock_setsockopt(sock, lev, optname, val)
break;
}
+ GetOpenFile(sock, fptr);
if (setsockopt(fileno(fptr->f), level, option, v, vlen) < 0)
rb_sys_fail(fptr->path);