*Wintergrasp: Tenacity fixes by Spp

*Better Windows signal handling for services, by defacer
*Always hide triggers for players, by ogeraisi

--HG--
branch : trunk
This commit is contained in:
maximius committed 2009-09-26 12:41:46 -07:00
1 parent 59586af421
commit 3416a6543d
5 files changed
+99 -99

No files matched your search

+4 -2
View File
@@ -373,7 +373,8 @@ void HookSignals()
signal(SIGINT, OnSignal);
signal(SIGTERM, OnSignal);
#ifdef _WIN32
signal(SIGBREAK, OnSignal);
if (m_ServiceStatus != 1)
signal(SIGBREAK, OnSignal);
#endif
}
@@ -383,7 +384,8 @@ void UnhookSignals()
signal(SIGINT, 0);
signal(SIGTERM, 0);
#ifdef _WIN32
signal(SIGBREAK, 0);
if (m_ServiceStatus != 1)
signal(SIGBREAK, 0);
#endif
}