Changed newline character because of issues
This commit is contained in:
11
src/main.cpp
11
src/main.cpp
@@ -47,9 +47,18 @@ void NonCtrlHandler(int a_Signal)
|
||||
case SIGSEGV:
|
||||
{
|
||||
std::signal(SIGSEGV, SIG_DFL);
|
||||
LOGWARN("Segmentation fault; MCServer has crashed :(");
|
||||
LOGERROR(" D: | MCServer has encountered an error and needs to close");
|
||||
LOGERROR("Details | SIGSEGV: Segmentation fault");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
case SIGABRT:
|
||||
case SIGABRT_COMPAT:
|
||||
{
|
||||
std::signal(a_Signal, SIG_DFL);
|
||||
LOGERROR(" D: | MCServer has encountered an error and needs to close");
|
||||
LOGERROR("Details | SIGABRT: Server self-terminated due to an internal fault");
|
||||
break;
|
||||
}
|
||||
case SIGTERM:
|
||||
{
|
||||
std::signal(SIGTERM, SIG_IGN); // Server is shutting down, wait for it...
|
||||
|
||||
Reference in New Issue
Block a user