]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Rolling back incorrect integration
authorepa <epa@opencascade.com>
Thu, 12 Oct 2006 14:34:10 +0000 (14:34 +0000)
committerepa <epa@opencascade.com>
Thu, 12 Oct 2006 14:34:10 +0000 (14:34 +0000)
src/SalomeApp/SalomeApp_ExceptionHandler.cxx

index 81cd56b04a168ade05cfac6ce3a7febb5411d03b..d030d3c37d232da9ac7ff69ac181961a87d6d597 100644 (file)
 SalomeApp_ExceptionHandler::SalomeApp_ExceptionHandler( const bool floatSignal )
 : SUIT_ExceptionHandler()
 {
-  OSD::SetSignal( floatSignal );
+  // JFA 2006-09-28: PAL10867: suppress signal catching,
+  // if environment variable DISABLE_SIGNALS_CATCHING is set to 1.
+  // Commonly this is used with "noexcepthandler" option.
+  char* envNoCatchSignals = getenv("NOT_INTERCEPT_SIGNALS");
+  if (!envNoCatchSignals || !atoi(envNoCatchSignals))
+  {
+    OSD::SetSignal( floatSignal );
+  }
 }
 
 /*!Try to call SUIT_ExceptionHandler::internalHandle(o, e), catch if failure.*/
@@ -104,5 +111,6 @@ extern "C" SALOMEAPP_EXPORT SUIT_ExceptionHandler* getExceptionHandler()
 #else
   raiseFPE = false;
 #endif
+
   return new SalomeApp_ExceptionHandler( raiseFPE );
 }