summaryrefslogtreecommitdiff
path: root/ext/socket/socket.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-01-05 04:41:21 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-01-05 04:41:21 +0000
commitde7161526014b781468cea5d84411e23be945f79 (patch)
treece7e90b3c16ce6246be9850c9b1ea1328992c0e7 /ext/socket/socket.c
parenta1d1b1516750c1047ceb7010f8f5ca34b358c7e3 (diff)
20000105
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/socket.c')
-rw-r--r--ext/socket/socket.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index 9459705..e8ceacf 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -92,17 +92,10 @@ static void
sock_finalize(fptr)
OpenFile *fptr;
{
- SOCKET s;
- extern int errno;
-
if (!fptr->f) return;
- myfdclose(fptr->f);
- if(fptr->f2) myfdclose(fptr->f);
-/*
- s = get_osfhandle(fileno(fptr->f));
- closesocket(s);
-*/
+ myfdclose(fptr->f);
+ if(fptr->f2) myfdclose(fptr->f2);
}
#endif