Remove warning in server_logger; fix #993
This commit is contained in:
parent
2902d8575e
commit
55c174a823
1 changed files with 4 additions and 6 deletions
|
@ -122,27 +122,25 @@ void ServerLogger::flushBuffer()
|
||||||
void ServerLogger::hupSignalHandler(int /*unused*/)
|
void ServerLogger::hupSignalHandler(int /*unused*/)
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_UNIX
|
#ifdef Q_OS_UNIX
|
||||||
ssize_t writeValue = 0;
|
|
||||||
|
|
||||||
if (!logFile)
|
if (!logFile)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
char a = 1;
|
char a = 1;
|
||||||
writeValue = ::write(sigHupFD[0], &a, sizeof(a));
|
ssize_t writeValue = ::write(sigHupFD[0], &a, sizeof(a));
|
||||||
|
Q_UNUSED(writeValue);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ServerLogger::handleSigHup()
|
void ServerLogger::handleSigHup()
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_UNIX
|
#ifdef Q_OS_UNIX
|
||||||
ssize_t readValue = 0;
|
|
||||||
|
|
||||||
if (!logFile)
|
if (!logFile)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
snHup->setEnabled(false);
|
snHup->setEnabled(false);
|
||||||
char tmp;
|
char tmp;
|
||||||
readValue = ::read(sigHupFD[1], &tmp, sizeof(tmp));
|
ssize_t readValue = ::read(sigHupFD[1], &tmp, sizeof(tmp));
|
||||||
|
Q_UNUSED(readValue);
|
||||||
|
|
||||||
logFile->close();
|
logFile->close();
|
||||||
logFile->open(QIODevice::Append);
|
logFile->open(QIODevice::Append);
|
||||||
|
|
Loading…
Reference in a new issue