mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 15:07:28 +00:00
Add handling of SIGTERM
This commit is contained in:
parent
03e2a855b1
commit
2221945dc8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user