mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 02:10:35 +05:00
PAL10867: noexcepthandler option in GUI not working. Disable signals catching.
This commit is contained in:
parent
933c17cfd8
commit
ffab2d99a0
@ -426,18 +426,23 @@ void SMESH_Gen_i::SetEmbeddedMode( CORBA::Boolean theMode )
|
|||||||
myIsEmbeddedMode = theMode;
|
myIsEmbeddedMode = theMode;
|
||||||
|
|
||||||
if ( !myIsEmbeddedMode ) {
|
if ( !myIsEmbeddedMode ) {
|
||||||
bool raiseFPE;
|
//PAL10867: disable signals catching with "noexcepthandler" option
|
||||||
|
char* envNoCatchSignals = getenv("NOT_INTERCEPT_SIGNALS");
|
||||||
|
if (!envNoCatchSignals || !atoi(envNoCatchSignals))
|
||||||
|
{
|
||||||
|
bool raiseFPE;
|
||||||
#ifdef _DEBUG_
|
#ifdef _DEBUG_
|
||||||
raiseFPE = true;
|
raiseFPE = true;
|
||||||
char* envDisableFPE = getenv("DISABLE_FPE");
|
char* envDisableFPE = getenv("DISABLE_FPE");
|
||||||
if (envDisableFPE && atoi(envDisableFPE))
|
if (envDisableFPE && atoi(envDisableFPE))
|
||||||
raiseFPE = false;
|
raiseFPE = false;
|
||||||
#else
|
#else
|
||||||
raiseFPE = false;
|
raiseFPE = false;
|
||||||
#endif
|
#endif
|
||||||
OSD::SetSignal( raiseFPE );
|
OSD::SetSignal( raiseFPE );
|
||||||
|
}
|
||||||
|
// else OSD::SetSignal() is called in GUI
|
||||||
}
|
}
|
||||||
// else OSD::SetSignal() is called in GUI
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user