From 7316c8aafd10dff89af35a5c7dedebdf9abacfef Mon Sep 17 00:00:00 2001 From: nalal Date: Sat, 6 Jul 2019 04:03:50 -0700 Subject: [PATCH] Added functionality for TES3MP server to catch system signals This should permit the TES3MP server to catch when a "SIGTERM"(Standard program stop) or "SIGINT"(Ctrl+C) is sent to the process and allow that to initiate the standard shutdown procedure by halting the networking loop peacefully. --- apps/openmw-mp/Networking.cpp | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index 196f39e13..743932e6f 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -14,6 +14,7 @@ #include