summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2004-04-21 12:52:06 +0000
committerMarc Laukien <marc@zeroc.com>2004-04-21 12:52:06 +0000
commitb14d3755f19473693f8bb2d9fb56ab176833c3b9 (patch)
treee4d3710e822e9f2285ca3df7777c22f8ca01dfb7 /cpp/src
parentNew test, and fixed Cache bug that could cause deadlock (diff)
downloadice-b14d3755f19473693f8bb2d9fb56ab176833c3b9.tar.bz2
ice-b14d3755f19473693f8bb2d9fb56ab176833c3b9.tar.xz
ice-b14d3755f19473693f8bb2d9fb56ab176833c3b9.zip
fix
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Ice/ThreadPool.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp
index df331a3fb26..0f361a6f702 100644
--- a/cpp/src/Ice/ThreadPool.cpp
+++ b/cpp/src/Ice/ThreadPool.cpp
@@ -116,6 +116,14 @@ IceInternal::ThreadPool::~ThreadPool()
{
assert(_destroyed);
+//
+// For some unknown reason, closing sockets below fails under WIN32,
+// with an exception that indicates that WSACleanup() would have been
+// called (error code WSANOTINITIALISED). However, traces show that
+// this is not the case, i.e., at least Ice doesn't call WSACleanup()
+// before the code below.
+//
+#ifndef _WIN32
try
{
closeSocket(_fdIntrWrite);
@@ -126,6 +134,7 @@ IceInternal::ThreadPool::~ThreadPool()
Error out(_instance->logger());
out << "exception in `" << _prefix << "' while calling closeSocket():\n" << ex;
}
+#endif
}
void