summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-14 08:10:32 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-14 08:10:32 +0000
commit8e97bce8230500e9415a7f31d72521a32d6dd11b (patch)
treea44ac3a701f6a48546fba86b7e59fdb2c39206d2
parentbb1983b4373c3f192bb8a09de10172d2928fce5b (diff)
* win32/win32.c (rb_w32_close): need to reset osfhnd().
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--win32/win32.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8b728e093..a7e1766aa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Dec 14 17:10:09 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_close): need to reset osfhnd().
+
Tue Dec 14 14:03:57 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
* ext/openssl/ossl.c (ossl_raise): avoid buffer overrun.
diff --git a/win32/win32.c b/win32/win32.c
index d4deec8d0..1a859a5a3 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -3223,6 +3223,7 @@ rb_w32_close(int fd)
UnlockFile((HANDLE)sock, 0, 0, LK_LEN, LK_LEN);
return _close(fd);
}
+ _set_osfhnd(fd, (SOCKET)INVALID_HANDLE_VALUE);
if (closesocket(sock) == SOCKET_ERROR) {
errno = map_errno(WSAGetLastError());
return -1;