summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/Naming_Service
diff options
context:
space:
mode:
authorPhil Mesnier <mesnier_p@ociweb.com>2013-10-28 16:54:40 +0000
committerPhil Mesnier <mesnier_p@ociweb.com>2013-10-28 16:54:40 +0000
commitc3e2f63c2cf6dcafefd7f00ecdc3999d2b08ab54 (patch)
tree33681f6aeee2bc3e8f41089466cd22b87d85ae1b /TAO/orbsvcs/Naming_Service
parent0a099e17c90f5014ba33ffc20549cddf8ee8e146 (diff)
downloadATCD-c3e2f63c2cf6dcafefd7f00ecdc3999d2b08ab54.tar.gz
Mon Oct 28 16:33:43 UTC 2013 Phil Mesnier <mesnier_p@ociweb.com>
* orbsvcs/FT_Naming_Service/FT_Naming_Service.cpp: * orbsvcs/Naming_Service/Naming_Service.cpp: Report an error and exit if the service is unable to start the threads requested with the -n command line parameter.
Diffstat (limited to 'TAO/orbsvcs/Naming_Service')
-rw-r--r--TAO/orbsvcs/Naming_Service/Naming_Service.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/TAO/orbsvcs/Naming_Service/Naming_Service.cpp b/TAO/orbsvcs/Naming_Service/Naming_Service.cpp
index bcf1ae6a551..ef72a87c82b 100644
--- a/TAO/orbsvcs/Naming_Service/Naming_Service.cpp
+++ b/TAO/orbsvcs/Naming_Service/Naming_Service.cpp
@@ -155,8 +155,15 @@ TAO_Naming_Service::run (void)
return runner.svc();
else
{
- runner.activate ( THR_NEW_LWP | THR_JOINABLE | THR_INHERIT_SCHED,
- this->num_threads_);
+ int grpid = runner.activate ( THR_NEW_LWP | THR_JOINABLE | THR_INHERIT_SCHED,
+ this->num_threads_);
+ if (grpid == -1)
+ {
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT ("Naming_Service(%P)::run %p\n"),
+ ACE_TEXT ("thread acitvation")));
+ return -1;
+ }
runner.wait();
}
return 0;