From f578dbfc54e4fd17cd897c9dd86871b1d3c19f8f Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Tue, 7 Jan 2014 21:23:26 +0000 Subject: Graceful shutdown on SIGTERM --- src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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; } } -- cgit v1.2.3 From 6c65b050ca7f09e032b52ac2b1ef1fdc2363eddd Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Tue, 7 Jan 2014 21:29:01 +0000 Subject: Updated Core --- MCServer/Plugins/Core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MCServer/Plugins/Core b/MCServer/Plugins/Core index 302115ae1..c65b56767 160000 --- a/MCServer/Plugins/Core +++ b/MCServer/Plugins/Core @@ -1 +1 @@ -Subproject commit 302115ae19276227bf371971d4b6fa5f9f857da0 +Subproject commit c65b56767a5e59ca387a05be72ef18791baa9aed -- cgit v1.2.3