Merge pull request #359 from AxtonF/HandleSIGTERM

Add handling of SIGTERM
This commit is contained in:
Xiphoseer
2022-02-05 15:38:49 +01:00
committed by GitHub
2 changed files with 3 additions and 4 deletions

View File

@@ -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;