From: ageay Date: Fri, 26 Nov 2004 12:28:13 +0000 (+0000) Subject: Porting on CCRT: X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3bfbccca33d7cfeaa1fe179018680f7cc45246f0;p=modules%2Fkernel.git Porting on CCRT: For CCRT needs the system signals are not catched yet. --- diff --git a/src/Container/SALOME_Container_SignalsHandler.cxx b/src/Container/SALOME_Container_SignalsHandler.cxx index bb2d8989f..b40f721a4 100644 --- a/src/Container/SALOME_Container_SignalsHandler.cxx +++ b/src/Container/SALOME_Container_SignalsHandler.cxx @@ -20,18 +20,34 @@ #include #include +#include "utilities.h" -#include "CASCatch_SignalsHandler.h" // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC +// CCRT porting +// #include "CASCatch_SignalsHandler.h" // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC using namespace std; extern "C" void HandleServerSideSignals(CORBA::ORB_ptr theORB) { - CASCatch_SignalsHandler aSignalsHandler; + // CCRT porting + // CASCatch_SignalsHandler aSignalsHandler; try { theORB->run(); - }catch(Standard_Failure){ - Handle(Standard_Failure) aFail = Standard_Failure::Caught(); - throw std::runtime_error(aFail->GetMessageString()); + // CCRT porting + // }catch(CORBA::SystemException&){ + // Handle(Standard_Failure) aFail = Standard_Failure::Caught(); + // throw std::runtime_error(aFail->GetMessageString()); + }catch(CORBA::SystemException&){ + INFOS("Caught CORBA::SystemException."); + }catch(PortableServer::POA::WrongPolicy&){ + INFOS("Caught CORBA::WrongPolicyException."); + }catch(PortableServer::POA::ServantAlreadyActive&){ + INFOS("Caught CORBA::ServantAlreadyActiveException"); + }catch(CORBA::Exception&){ + INFOS("Caught CORBA::Exception."); + }catch(std::exception& exc){ + INFOS("Caught std::exception - "<