summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/LoadBalancer/Signal_Handler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/LoadBalancer/Signal_Handler.cpp')
-rw-r--r--TAO/orbsvcs/LoadBalancer/Signal_Handler.cpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/TAO/orbsvcs/LoadBalancer/Signal_Handler.cpp b/TAO/orbsvcs/LoadBalancer/Signal_Handler.cpp
index e6c646c9833..bfa9e0956a7 100644
--- a/TAO/orbsvcs/LoadBalancer/Signal_Handler.cpp
+++ b/TAO/orbsvcs/LoadBalancer/Signal_Handler.cpp
@@ -113,35 +113,27 @@ TAO_LB_Signal_Handler::handle_signal (int signum, siginfo_t *, ucontext_t *)
int
TAO_LB_Signal_Handler::perform_cleanup (int signum)
{
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
+ try
{
// Shutdown the POA.
//
// Shutting down the POA will cause servants "owned" by the POA
// to be destroyed. Servants will then have the opportunity to
// clean up all resources they are responsible for.
- this->poa_->destroy (1, 1
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ this->poa_->destroy (1, 1);
// Now shutdown the ORB.
- this->orb_->shutdown (1
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ this->orb_->shutdown (1);
}
- ACE_CATCHANY
+ catch (const CORBA::Exception& ex)
{
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception");
+ ex._tao_print_exception ("Caught exception");
ACE_ERROR_RETURN ((LM_ERROR,
"Problem during cleanup initiated by signal %d.\n",
signum),
-1);
}
- ACE_ENDTRY;
- ACE_CHECK_RETURN (-1);
return 0;
}