summaryrefslogtreecommitdiff
path: root/cpp/src/IceUtil/CtrlCHandler.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2004-12-03 20:03:31 +0000
committerMarc Laukien <marc@zeroc.com>2004-12-03 20:03:31 +0000
commit5220c6574d350afba2961bd94eef02d4f7d867fe (patch)
treef54c5bb7bd5f50fbf6f2070f32652a535b1e10cb /cpp/src/IceUtil/CtrlCHandler.cpp
parentfixes (diff)
downloadice-5220c6574d350afba2961bd94eef02d4f7d867fe.tar.bz2
ice-5220c6574d350afba2961bd94eef02d4f7d867fe.tar.xz
ice-5220c6574d350afba2961bd94eef02d4f7d867fe.zip
icepatch2 fixes
Diffstat (limited to 'cpp/src/IceUtil/CtrlCHandler.cpp')
-rw-r--r--cpp/src/IceUtil/CtrlCHandler.cpp59
1 files changed, 1 insertions, 58 deletions
diff --git a/cpp/src/IceUtil/CtrlCHandler.cpp b/cpp/src/IceUtil/CtrlCHandler.cpp
index 36063bdffb9..78b3e2ec298 100644
--- a/cpp/src/IceUtil/CtrlCHandler.cpp
+++ b/cpp/src/IceUtil/CtrlCHandler.cpp
@@ -69,36 +69,7 @@ static BOOL WINAPI handlerRoutine(DWORD dwCtrlType)
CtrlCHandlerCallback callback = _handler->getCallback();
if(callback != 0)
{
- try
- {
- callback(dwCtrlType);
- }
- catch(const IceUtil::Exception& ex)
- {
- cerr << " (while destroying in response to signal "
- << "): " << ex << endl;
- }
- catch(const std::exception& ex)
- {
- cerr << " (while destroying in response to signal "
- << "): std::exception: " << ex.what() << endl;
- }
- catch(const std::string& msg)
- {
- cerr << " (while destroying in response to signal "
- << "): " << msg << endl;
- }
- catch(const char * msg)
- {
- cerr << " (while destroying in response to signal "
- << "): " << msg << endl;
- }
- catch(...)
- {
- cerr << " (while destroying in response to signal "
- << "): unknown exception" << endl;
- }
-
+ callback(dwCtrlType);
}
return TRUE;
}
@@ -175,36 +146,8 @@ sigwaitThread(void*)
if(callback != 0)
{
- try
- {
callback(signal);
}
- catch(const IceUtil::Exception& ex)
- {
- cerr << " (while destroying in response to signal "
- << "): " << ex << endl;
- }
- catch(const std::exception& ex)
- {
- cerr << " (while destroying in response to signal "
- << "): std::exception: " << ex.what() << endl;
- }
- catch(const std::string& msg)
- {
- cerr << " (while destroying in response to signal "
- << "): " << msg << endl;
- }
- catch(const char * msg)
- {
- cerr << " (while destroying in response to signal "
- << "): " << msg << endl;
- }
- catch(...)
- {
- cerr << " (while destroying in response to signal "
- << "): unknown exception" << endl;
- }
- }
rc = pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, 0);
assert(rc == 0);