mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
moc weirdness workaround on Unix, added install target
This commit is contained in:
parent
f385917a90
commit
e202d659a0
6 changed files with 21 additions and 7 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue