diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-02-05 15:41:43 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-02-05 15:41:43 +0000 |
commit | fb6981e2ab91293743dc99bb6a6e8a8571dcd1e1 (patch) | |
tree | 1937e582a1737bcb042b356c91cfca2ce63b2b1a /examples/ASX | |
parent | 1932d40c7f045d08f7a439740e946dc570c0482f (diff) | |
download | ATCD-fb6981e2ab91293743dc99bb6a6e8a8571dcd1e1.tar.gz |
return 1 if init () call in open () succeeds
Diffstat (limited to 'examples/ASX')
-rw-r--r-- | examples/ASX/UPIPE_Event_Server/Consumer_Router.cpp | 5 | ||||
-rw-r--r-- | examples/ASX/UPIPE_Event_Server/Supplier_Router.cpp | 9 |
2 files changed, 10 insertions, 4 deletions
diff --git a/examples/ASX/UPIPE_Event_Server/Consumer_Router.cpp b/examples/ASX/UPIPE_Event_Server/Consumer_Router.cpp index 524224c7d4e..b5363e3a8c8 100644 --- a/examples/ASX/UPIPE_Event_Server/Consumer_Router.cpp +++ b/examples/ASX/UPIPE_Event_Server/Consumer_Router.cpp @@ -44,7 +44,10 @@ Consumer_Router::open (void *) return -1; // Make this an active object. -// return this->activate (options.t_flags ()); + // return this->activate (options.t_flags ()); + + // Until that's done, return 1 to indicate that the object wasn't activated. + return 1; } int diff --git a/examples/ASX/UPIPE_Event_Server/Supplier_Router.cpp b/examples/ASX/UPIPE_Event_Server/Supplier_Router.cpp index 899c2dd63d5..398c1e1624a 100644 --- a/examples/ASX/UPIPE_Event_Server/Supplier_Router.cpp +++ b/examples/ASX/UPIPE_Event_Server/Supplier_Router.cpp @@ -56,7 +56,6 @@ int Supplier_Router::open (void *) { ACE_ASSERT (this->is_writer ()); - char *argv[3]; argv[0] = (char *) this->name (); @@ -65,8 +64,12 @@ Supplier_Router::open (void *) if (this->init (1, &argv[1]) == -1) return -1; - // Make this an active object. Return this->activate - // (options.t_flags ()); + + // Make this an active object. + // return this->activate (options.t_flags ()); + + // Until that's done, return 1 to indicate that the object wasn't activated. + return 1; } // Close down the router.. |