From 2221945dc85882b66214c00a251be5b599755d86 Mon Sep 17 00:00:00 2001 From: Felix Racz Date: Tue, 11 Jan 2022 22:47:29 +0100 Subject: [PATCH] Add handling of SIGTERM --- dWorldServer/WorldServer.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dWorldServer/WorldServer.cpp b/dWorldServer/WorldServer.cpp index 2a6cbaa5..8688dc1c 100644 --- a/dWorldServer/WorldServer.cpp +++ b/dWorldServer/WorldServer.cpp @@ -100,10 +100,8 @@ int main(int argc, char** argv) { // Triggers the shutdown sequence at application exit std::atexit(WorldShutdownSequence); - signal(SIGINT, [](int) - { - WorldShutdownSequence(); - }); + signal(SIGINT, [](int){ WorldShutdownSequence(); }); + signal(SIGTERM, [](int){ WorldShutdownSequence(); }); int zoneID = 1000; int cloneID = 0;