1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 19:16:37 +02:00

Fixed Windows build

This commit is contained in:
Adam
2010-10-11 18:47:54 -04:00
parent 717c123441
commit d7aa5f6a3a
13 changed files with 34 additions and 27 deletions
+8
View File
@@ -242,7 +242,11 @@ static void services_shutdown()
void sighandler(int signum)
{
if (quitmsg.empty())
#ifndef _WIN32
quitmsg = Anope::string("Services terminating via signal ") + strsignal(signum) + " (" + stringify(signum) + ")";
#else
quitmsg = Anope::string("Services terminating via signal ") + stringify(signum);
#endif
bool fatal = false;
if (started)
@@ -276,7 +280,11 @@ void sighandler(int signum)
signal(SIGHUP, SIG_IGN);
#endif
#ifndef _WIN32
Log() << "Received " << strsignal(signum) << " signal (" << signum << "), exiting.";
#else
Log() << "Received signal " << signum << ", exiting.";
#endif
if (Config->GlobalOnCycle)
oper_global("", "%s", Config->GlobalOnCycleMessage.c_str());