summaryrefslogtreecommitdiff
path: root/TAO/examples/Callback_Quoter/Consumer_Signal_Handler.cpp
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>1999-05-25 21:56:57 +0000
committerbala <balanatarajan@users.noreply.github.com>1999-05-25 21:56:57 +0000
commit0e44f151eb2b0ed30e8ac2f55378fc765dd95ce0 (patch)
tree5be1a9874f4828c2d4692539e14bba17cb2434f8 /TAO/examples/Callback_Quoter/Consumer_Signal_Handler.cpp
parentb3a4acf3507300443767e0973be1cd5dde3d8558 (diff)
downloadATCD-0e44f151eb2b0ed30e8ac2f55378fc765dd95ce0.tar.gz
Made some changes to exception handling
Diffstat (limited to 'TAO/examples/Callback_Quoter/Consumer_Signal_Handler.cpp')
-rw-r--r--TAO/examples/Callback_Quoter/Consumer_Signal_Handler.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/TAO/examples/Callback_Quoter/Consumer_Signal_Handler.cpp b/TAO/examples/Callback_Quoter/Consumer_Signal_Handler.cpp
index 394695123ad..ad6d9ae5f6c 100644
--- a/TAO/examples/Callback_Quoter/Consumer_Signal_Handler.cpp
+++ b/TAO/examples/Callback_Quoter/Consumer_Signal_Handler.cpp
@@ -60,9 +60,9 @@ Consumer_Signal_Handler::quit_on_signal (void)
// Only if the consumer is registered and wants to shut down, its
// necessary to unregister and then shutdown.
- // CORBA::Environment TAO_TRY_ENV;
+ ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY_NEW_ENV
+ ACE_TRY
{
if (consumer_handler_->unregistered_ != 1
&& consumer_handler_->registered_ == 1)
@@ -71,18 +71,17 @@ Consumer_Signal_Handler::quit_on_signal (void)
(this->consumer_handler_->consumer_var_.in ());
ACE_DEBUG ((LM_DEBUG,
"Consumer Unregistered\n"));
- ACE_TRY_CHECK;
- }
- this->consumer_handler_->consumer_servant_->shutdown
- (ACE_TRY_ENV);
+ }
+ this->consumer_handler_->consumer_servant_->shutdown (ACE_TRY_ENV);
+ ACE_TRY_CHECK;
}
-
ACE_CATCHANY
{
- ACE_TRY_ENV.print_exception ("Consumer_Input_Handler::quit_consumer_process()");
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,"Consumer_Input_Handler::quit_consumer_process()");
return -1;
}
ACE_ENDTRY;
+ ACE_CHECK_RETURN (-1);
return 0;
}