summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-01-08 08:36:01 +0100
committerMattes D <github@xoft.cz>2014-01-08 08:36:01 +0100
commitb952ea11c7f7598c4edc54f2a647af931da9ffcf (patch)
tree09f24f2212f7a85811f0b5f0e1b149d78fdf3b6a /src
parentRemoved bitdeli badge - we have GitHub analytics now. (diff)
parentUpdated Core (diff)
downloadcuberite-b952ea11c7f7598c4edc54f2a647af931da9ffcf.tar
cuberite-b952ea11c7f7598c4edc54f2a647af931da9ffcf.tar.gz
cuberite-b952ea11c7f7598c4edc54f2a647af931da9ffcf.tar.bz2
cuberite-b952ea11c7f7598c4edc54f2a647af931da9ffcf.tar.lz
cuberite-b952ea11c7f7598c4edc54f2a647af931da9ffcf.tar.xz
cuberite-b952ea11c7f7598c4edc54f2a647af931da9ffcf.tar.zst
cuberite-b952ea11c7f7598c4edc54f2a647af931da9ffcf.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;
}
}