summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-07 22:23:26 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-07 22:23:26 +0100
commitf578dbfc54e4fd17cd897c9dd86871b1d3c19f8f (patch)
treed25ab4fba5e518f4efdabad43ab1f878821bb3f7 /src/main.cpp
parentUpdated submodules (diff)
downloadcuberite-f578dbfc54e4fd17cd897c9dd86871b1d3c19f8f.tar
cuberite-f578dbfc54e4fd17cd897c9dd86871b1d3c19f8f.tar.gz
cuberite-f578dbfc54e4fd17cd897c9dd86871b1d3c19f8f.tar.bz2
cuberite-f578dbfc54e4fd17cd897c9dd86871b1d3c19f8f.tar.lz
cuberite-f578dbfc54e4fd17cd897c9dd86871b1d3c19f8f.tar.xz
cuberite-f578dbfc54e4fd17cd897c9dd86871b1d3c19f8f.tar.zst
cuberite-f578dbfc54e4fd17cd897c9dd86871b1d3c19f8f.zip
Diffstat (limited to '')
-rw-r--r--src/main.cpp5
1 files changed, 5 insertions, 0 deletions
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;
}
}