moc weirdness workaround on Unix, added install target

This commit is contained in:
Max-Wilhelm Bruker 2012-01-21 22:13:27 +01:00
parent f385917a90
commit e202d659a0
6 changed files with 21 additions and 7 deletions

View file

@ -68,18 +68,20 @@ void ServerLogger::flushBuffer()
}
}
#ifdef Q_OS_UNIX
void ServerLogger::hupSignalHandler(int /*unused*/)
{
#ifdef Q_OS_UNIX
if (!logFile)
return;
char a = 1;
::write(sigHupFD[0], &a, sizeof(a));
#endif
}
void ServerLogger::handleSigHup()
{
#ifdef Q_OS_UNIX
if (!logFile)
return;
@ -91,8 +93,8 @@ void ServerLogger::handleSigHup()
logFile->open(QIODevice::Append);
snHup->setEnabled(true);
}
#endif
}
QFile *ServerLogger::logFile;
int ServerLogger::sigHupFD[2];