abort does not take a parameter.
This commit is contained in:
parent
476fdc9952
commit
750333855c
@ -61,7 +61,7 @@ void NonCtrlHandler(int a_Signal)
|
|||||||
std::signal(SIGSEGV, SIG_DFL);
|
std::signal(SIGSEGV, SIG_DFL);
|
||||||
LOGERROR(" D: | MCServer has encountered an error and needs to close");
|
LOGERROR(" D: | MCServer has encountered an error and needs to close");
|
||||||
LOGERROR("Details | SIGSEGV: Segmentation fault");
|
LOGERROR("Details | SIGSEGV: Segmentation fault");
|
||||||
abort(EXIT_FAILURE);
|
abort();
|
||||||
}
|
}
|
||||||
case SIGABRT:
|
case SIGABRT:
|
||||||
#ifdef SIGABRT_COMPAT
|
#ifdef SIGABRT_COMPAT
|
||||||
@ -71,7 +71,7 @@ void NonCtrlHandler(int a_Signal)
|
|||||||
std::signal(a_Signal, SIG_DFL);
|
std::signal(a_Signal, SIG_DFL);
|
||||||
LOGERROR(" D: | MCServer has encountered an error and needs to close");
|
LOGERROR(" D: | MCServer has encountered an error and needs to close");
|
||||||
LOGERROR("Details | SIGABRT: Server self-terminated due to an internal fault");
|
LOGERROR("Details | SIGABRT: Server self-terminated due to an internal fault");
|
||||||
abort(EXIT_FAILURE);
|
abort();
|
||||||
}
|
}
|
||||||
case SIGINT:
|
case SIGINT:
|
||||||
case SIGTERM:
|
case SIGTERM:
|
||||||
|
Loading…
Reference in New Issue
Block a user