summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
m---------MCServer/Plugins/Core0
-rw-r--r--src/main.cpp5
2 files changed, 5 insertions, 0 deletions
diff --git a/MCServer/Plugins/Core b/MCServer/Plugins/Core
-Subproject 302115ae19276227bf371971d4b6fa5f9f857da
+Subproject c65b56767a5e59ca387a05be72ef18791baa9ae
diff --git a/src/main.cpp b/src/main.cpp
index 81c6b41e4..0620e0f0e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -50,6 +50,11 @@ void NonCtrlHandler(int a_Signal)
LOGWARN("Segmentation fault; MCServer has crashed :(");
exit(EXIT_FAILURE);
}
+ case SIGTERM:
+ {
+ std::signal(SIGTERM, SIG_IGN); // Server is shutting down, wait for it...
+ break;
+ }
default: break;
}
}