Avoid recursive call of signal handler

This commit is contained in:
Matthias Hochsteger 2019-10-14 18:01:11 +02:00
parent c9e764a32f
commit c2e658274a

View File

@ -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: