diff options
author | Phil Mesnier <mesnier_p@ociweb.com> | 2013-10-28 16:54:40 +0000 |
---|---|---|
committer | Phil Mesnier <mesnier_p@ociweb.com> | 2013-10-28 16:54:40 +0000 |
commit | c3e2f63c2cf6dcafefd7f00ecdc3999d2b08ab54 (patch) | |
tree | 33681f6aeee2bc3e8f41089466cd22b87d85ae1b /TAO/orbsvcs/Naming_Service | |
parent | 0a099e17c90f5014ba33ffc20549cddf8ee8e146 (diff) | |
download | ATCD-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.cpp | 11 |
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; |