summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/ImplRepo/ReconnectServer/serverB.cpp
diff options
context:
space:
mode:
authorPhil Mesnier <mesnier_p@ociweb.com>2014-10-10 15:48:44 +0000
committerPhil Mesnier <mesnier_p@ociweb.com>2014-10-10 15:48:44 +0000
commit8cb211430ac1af0f738444209565ca9aa2840a62 (patch)
tree81219e6b1ba07c30b1236fe3419cce3c72f94a92 /TAO/orbsvcs/tests/ImplRepo/ReconnectServer/serverB.cpp
parentbd1e67bdf7cc1bcbf5f3073b85df4f6cd16d8c7f (diff)
downloadATCD-8cb211430ac1af0f738444209565ca9aa2840a62.tar.gz
Fri Oct 10 14:27:50 UTC 2014 Phil Mesnier <mesnier_p@ociweb.com>
* orbsvcs/tests/ImplRepo/ReconnectServer/ReconnectServer.mpc: * orbsvcs/tests/ImplRepo/ReconnectServer/serverB.cpp: Revert the serverB changes from Fri Oct 3 19:54:01 UTC 2014 as it seems to have broken the forwardonce test.
Diffstat (limited to 'TAO/orbsvcs/tests/ImplRepo/ReconnectServer/serverB.cpp')
-rwxr-xr-xTAO/orbsvcs/tests/ImplRepo/ReconnectServer/serverB.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/TAO/orbsvcs/tests/ImplRepo/ReconnectServer/serverB.cpp b/TAO/orbsvcs/tests/ImplRepo/ReconnectServer/serverB.cpp
index e06a883b952..06f6c1fe2a2 100755
--- a/TAO/orbsvcs/tests/ImplRepo/ReconnectServer/serverB.cpp
+++ b/TAO/orbsvcs/tests/ImplRepo/ReconnectServer/serverB.cpp
@@ -1,5 +1,6 @@
// $Id$
#include "test_i.h"
+#include "ORB_Task.h"
#include "tao/ImR_Client/ImR_Client.h"
#include <ace/Task.h>
#include <ace/Get_Opt.h>
@@ -53,6 +54,10 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
CORBA::Object_var object =
orb->resolve_initial_references ("RootPOA");
+ ORB_Task worker (orb.in ());
+ worker.activate (THR_NEW_LWP | THR_JOINABLE,
+ 1);
+
PortableServer::POA_var rootPOA =
PortableServer::POA::_narrow (object.in ());
PortableServer::POAManager_var poa_manager =
@@ -121,7 +126,7 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
ACE_OS::fprintf (output_file, "%s", ior.in ());
ACE_OS::fclose (output_file);
- orb->run ();
+ worker.wait ();
rootPOA->destroy (1, 1);
orb->destroy ();