summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Cleeland <chris.cleeland@gmail.com>1998-02-17 22:50:02 +0000
committerChris Cleeland <chris.cleeland@gmail.com>1998-02-17 22:50:02 +0000
commit48c9320e38fd3f15c9196d54ddb0a6d232f2b4c0 (patch)
treeb08cd1e532ecd7ee330f1b1f547bb672cd022334
parent8a8f188ce77e6f386bb7de0af8a2950b5fbda56a (diff)
downloadATCD-48c9320e38fd3f15c9196d54ddb0a6d232f2b4c0.tar.gz
* tao/orbobj.cpp (open): Modified so that if it's been called
multiple times it returns '1' rather than '-1', thus not appearing to calling code as an error.
-rw-r--r--TAO/ChangeLog-98c6
-rw-r--r--TAO/tao/orbobj.cpp58
2 files changed, 8 insertions, 56 deletions
diff --git a/TAO/ChangeLog-98c b/TAO/ChangeLog-98c
index 51ecabfc61c..af2cf776688 100644
--- a/TAO/ChangeLog-98c
+++ b/TAO/ChangeLog-98c
@@ -1,3 +1,9 @@
+Tue Feb 17 16:50:20 1998 Chris Cleeland <cleeland@cs.wustl.edu>
+
+ * tao/orbobj.cpp (open): Modified so that if it's been called
+ multiple times it returns '1' rather than '-1', thus not appearing
+ to calling code as an error.
+
Tue Feb 17 16:05:55 1998 Nanbor Wang <nanbor@cs.wustl.edu>
* orbsvcs/orbsvcs/orbsvcs.dsp: Chris G. updated the file list of
diff --git a/TAO/tao/orbobj.cpp b/TAO/tao/orbobj.cpp
index 0544e60a380..5fc26ac1a71 100644
--- a/TAO/tao/orbobj.cpp
+++ b/TAO/tao/orbobj.cpp
@@ -53,7 +53,7 @@ int
CORBA_ORB::open (void)
{
if (this->open_called_ != CORBA::B_FALSE)
- return -1;
+ return 1;
this->open_called_ = CORBA::B_TRUE;
@@ -68,7 +68,7 @@ CORBA_ORB::open (void)
f->accept_strategy (),
f->concurrency_strategy (),
f->scheduling_strategy ()) == -1)
- // @@ CJC Need to return an error somehow!! Maybe set do_exit?
+ // Need to return an error somehow!! Maybe set do_exit?
return -1;
if (ocp->acceptor ()->acceptor ().get_local_addr (ocp->addr ()) == -1)
@@ -187,60 +187,6 @@ CORBA_ORB::create_list (CORBA::Long count,
}
}
-// This is a server-side internal routine; it's not available to any
-// portable code except method code, which moreover may not access the
-// state variable directly since its implemention may differ between
-// ORBs.
-//
-// XXX it's server-side so should be OA-specific and not in this module
-
-#if 0
-CORBA::POA_ptr
-CORBA_ORB::POA_init (int &argc,
- char **argv,
- const char *poa_identifier)
-{
- // Parse the arguments looking for options starting with -OA. After
- // processing these options, move all these to the end of the argv
- // list and decrement argc appropriately.
-
- TAO_ORB_Core *oc = TAO_ORB_Core_instance ();
- CORBA::POA_ptr rp;
- CORBA::String_var id = poa_identifier;
- CORBA::Environment env;
-
- for (int i = 0; i < argc; )
- {
- // @@ Can you please add comments describing each of these options? --doug
- // @@ Andy, could you review these since you wrote the code --cjc
-
- if (ACE_OS::strcmp (argv[i], "-OAid") == 0)
- {
- // Specify the name of the OA
- i++;
- if (i < argc)
- id = CORBA::string_dup (argv[i++]);
- }
- else
- i++;
- }
-
- if (oc->root_poa ())
- {
- env.exception (new CORBA::INITIALIZE (CORBA::COMPLETED_NO));
- return 0;
- }
-
-#if defined (POA_NEEDS_REQ_KEY)
- (void) ACE_Thread::keycreate (&req_key_);
-#endif /* POA_NEEDS_REQ_KEY */
-
- ACE_NEW_RETURN (rp, CORBA::POA (this, env), 0);
-
- return rp;
-}
-#endif /* 0 */
-
int
CORBA_ORB::perform_work (ACE_Time_Value *tv)
{