diff options
author | Milan Cvetkovic <milan.cvetkovic@mpathix.com> | 2016-04-07 14:36:56 -0400 |
---|---|---|
committer | Milan Cvetkovic <milan.cvetkovic@mpathix.com> | 2016-04-07 14:36:56 -0400 |
commit | 287883987b9e14e78bed1a9074507f88ec6b19d2 (patch) | |
tree | 6bcb793147da0c73f60f387d454b95a75df9496a | |
parent | 2884c7b4884d6410c44f15fbeffd97b1ee20fcfb (diff) | |
download | ATCD-287883987b9e14e78bed1a9074507f88ec6b19d2.tar.gz |
Wait for orb thread to terminate
-rw-r--r-- | TAO/orbsvcs/tests/Security/ssliop_corbaloc/client.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/TAO/orbsvcs/tests/Security/ssliop_corbaloc/client.cpp b/TAO/orbsvcs/tests/Security/ssliop_corbaloc/client.cpp index 35d50635b73..d697299e37b 100644 --- a/TAO/orbsvcs/tests/Security/ssliop_corbaloc/client.cpp +++ b/TAO/orbsvcs/tests/Security/ssliop_corbaloc/client.cpp @@ -182,7 +182,14 @@ CosNaming_Client::parse_args (void) int CosNaming_Client::run (void) { - return test_->execute (naming_client_); + this->activate(); + int rv = test_->execute (naming_client_); + { + CORBA::ORB_var orb = this->orbmgr_.orb(); + orb->shutdown(); + } + this->wait(); + return rv; } CosNaming_Client::~CosNaming_Client (void) @@ -1078,6 +1085,5 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[]) if (cosnaming_client.init (argc, argv) == -1) return 1; - cosnaming_client.activate(); return cosnaming_client.run (); } |