*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
2009-09-26 12:41:46 -07:00
parent 59586af421
commit 3416a6543d
5 changed files with 99 additions and 99 deletions

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
}