summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ThreadPool.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2003-12-12 16:43:55 +0000
committerMarc Laukien <marc@zeroc.com>2003-12-12 16:43:55 +0000
commitbe72389924fa605eb2fb3b8eadb3a0fdab96a5f9 (patch)
tree040fb2314449de17d7069674565432d38fe7b5dc /cpp/src/Ice/ThreadPool.cpp
parentfixes (diff)
downloadice-be72389924fa605eb2fb3b8eadb3a0fdab96a5f9.tar.bz2
ice-be72389924fa605eb2fb3b8eadb3a0fdab96a5f9.tar.xz
ice-be72389924fa605eb2fb3b8eadb3a0fdab96a5f9.zip
fixes
Diffstat (limited to 'cpp/src/Ice/ThreadPool.cpp')
-rw-r--r--cpp/src/Ice/ThreadPool.cpp20
1 files changed, 15 insertions, 5 deletions
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp
index 22882fd21a4..c0b4385453c 100644
--- a/cpp/src/Ice/ThreadPool.cpp
+++ b/cpp/src/Ice/ThreadPool.cpp
@@ -231,7 +231,9 @@ repeat:
SocketException ex(__FILE__, __LINE__);
ex.error = getSocketErrno();
- throw ex;
+ //throw ex;
+ Error out(_instance->logger());
+ out << "exception in `" << _prefix << "':\n" << ex;
}
#else
if(::read(_fdIntrRead, &c, 1) == -1)
@@ -243,7 +245,9 @@ repeat:
SyscallException ex(__FILE__, __LINE__);
ex.error = getSystemErrno();
- throw ex;
+ //throw ex;
+ Error out(_instance->logger());
+ out << "exception in `" << _prefix << "':\n" << ex;
}
#endif
@@ -265,7 +269,9 @@ repeat:
SocketException ex(__FILE__, __LINE__);
ex.error = getSocketErrno();
- throw ex;
+ //throw ex;
+ Error out(_instance->logger());
+ out << "exception in `" << _prefix << "':\n" << ex;
}
#else
if(::write(_fdIntrWrite, &c, 1) == -1)
@@ -277,7 +283,9 @@ repeat:
SyscallException ex(__FILE__, __LINE__);
ex.error = getSystemErrno();
- throw ex;
+ //throw ex;
+ Error out(_instance->logger());
+ out << "exception in `" << _prefix << "':\n" << ex;
}
#endif
}
@@ -326,7 +334,9 @@ IceInternal::ThreadPool::run()
SocketException ex(__FILE__, __LINE__);
ex.error = getSocketErrno();
- throw ex;
+ //throw ex;
+ Error out(_instance->logger());
+ out << "exception in `" << _prefix << "':\n" << ex;
}
EventHandlerPtr handler;