diff options
author | Mark Spruiell <mes@zeroc.com> | 2005-04-18 21:01:31 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2005-04-18 21:01:31 +0000 |
commit | 52ccba1302b8be35285e8464e6eaf26dcec1a808 (patch) | |
tree | 40a57d481883b84a35a73e1dfbb94ed1832b3764 /cpp/src/Ice/ThreadPool.cpp | |
parent | comments (diff) | |
download | ice-52ccba1302b8be35285e8464e6eaf26dcec1a808.tar.bz2 ice-52ccba1302b8be35285e8464e6eaf26dcec1a808.tar.xz ice-52ccba1302b8be35285e8464e6eaf26dcec1a808.zip |
re-enable closing pipe FDs in Windows
Diffstat (limited to 'cpp/src/Ice/ThreadPool.cpp')
-rw-r--r-- | cpp/src/Ice/ThreadPool.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp index 6d7c7deb2c6..6609421d50f 100644 --- a/cpp/src/Ice/ThreadPool.cpp +++ b/cpp/src/Ice/ThreadPool.cpp @@ -122,17 +122,18 @@ 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); + } + catch(const LocalException& ex) + { + Error out(_instance->logger()); + out << "exception in `" << _prefix << "' while calling closeSocket():\n" << ex; + } + + try + { closeSocket(_fdIntrRead); } catch(const LocalException& ex) @@ -140,7 +141,6 @@ IceInternal::ThreadPool::~ThreadPool() Error out(_instance->logger()); out << "exception in `" << _prefix << "' while calling closeSocket():\n" << ex; } -#endif } void |