mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
Avoid recursive call of signal handler
This commit is contained in:
parent
c9e764a32f
commit
c2e658274a
@ -167,6 +167,11 @@ namespace ngcore
|
||||
|
||||
static void ngcore_signal_handler(int sig)
|
||||
{
|
||||
static bool first_call = true;
|
||||
if(!first_call)
|
||||
exit(1); // avoid endless recursions if signals are caused by this handler
|
||||
first_call = false;
|
||||
|
||||
switch(sig)
|
||||
{
|
||||
case SIGABRT:
|
||||
|
Loading…
Reference in New Issue
Block a user