summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2008-11-07 12:25:58 +0100
committerBenoit Foucher <benoit@zeroc.com>2008-11-07 12:25:58 +0100
commit17fb258eff8192aaba6d51bd5f35d560c343266a (patch)
treef4aaa6bfdd706bdbac0f1816803fa8cce01feb15 /cpp/src
parentFixed generated code to use skipEmptyEncaps instead of startReadEncaps/endRea... (diff)
downloadice-17fb258eff8192aaba6d51bd5f35d560c343266a.tar.bz2
ice-17fb258eff8192aaba6d51bd5f35d560c343266a.tar.xz
ice-17fb258eff8192aaba6d51bd5f35d560c343266a.zip
Fixes for bug 3530 & 3536: asserts when thread fails to start
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Ice/ConnectionFactory.cpp2
-rw-r--r--cpp/src/Ice/SelectorThread.cpp6
2 files changed, 7 insertions, 1 deletions
diff --git a/cpp/src/Ice/ConnectionFactory.cpp b/cpp/src/Ice/ConnectionFactory.cpp
index c84ff797b7f..23fd5bcb242 100644
--- a/cpp/src/Ice/ConnectionFactory.cpp
+++ b/cpp/src/Ice/ConnectionFactory.cpp
@@ -1495,7 +1495,7 @@ IceInternal::IncomingConnectionFactory::initialize(const string& adapterName)
{
// Here we ignore any exceptions in close().
}
-
+ _acceptor = 0;
throw;
}
}
diff --git a/cpp/src/Ice/SelectorThread.cpp b/cpp/src/Ice/SelectorThread.cpp
index c76505c240e..375b7b5a473 100644
--- a/cpp/src/Ice/SelectorThread.cpp
+++ b/cpp/src/Ice/SelectorThread.cpp
@@ -38,11 +38,17 @@ IceInternal::SelectorThread::SelectorThread(const InstancePtr& instance) :
Error out(_instance->initializationData().logger);
out << "cannot create thread for selector thread:\n" << ex;
}
+ _thread = 0;
__setNoDelete(false);
throw;
}
catch(...)
{
+ {
+ Error out(_instance->initializationData().logger);
+ out << "cannot create thread for selector thread";
+ }
+ _thread = 0;
__setNoDelete(false);
throw;
}