Removed compile time ssize_t warnings
This commit is contained in:
parent
81e4e089d4
commit
e136c11b65
1 changed files with 6 additions and 2 deletions
|
@ -122,23 +122,27 @@ void ServerLogger::flushBuffer()
|
||||||
void ServerLogger::hupSignalHandler(int /*unused*/)
|
void ServerLogger::hupSignalHandler(int /*unused*/)
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_UNIX
|
#ifdef Q_OS_UNIX
|
||||||
|
ssize_t writeValue = NULL;
|
||||||
|
|
||||||
if (!logFile)
|
if (!logFile)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
char a = 1;
|
char a = 1;
|
||||||
::write(sigHupFD[0], &a, sizeof(a));
|
writeValue = ::write(sigHupFD[0], &a, sizeof(a));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ServerLogger::handleSigHup()
|
void ServerLogger::handleSigHup()
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_UNIX
|
#ifdef Q_OS_UNIX
|
||||||
|
ssize_t readValue = NULL;
|
||||||
|
|
||||||
if (!logFile)
|
if (!logFile)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
snHup->setEnabled(false);
|
snHup->setEnabled(false);
|
||||||
char tmp;
|
char tmp;
|
||||||
::read(sigHupFD[1], &tmp, sizeof(tmp));
|
readValue = ::read(sigHupFD[1], &tmp, sizeof(tmp));
|
||||||
|
|
||||||
logFile->close();
|
logFile->close();
|
||||||
logFile->open(QIODevice::Append);
|
logFile->open(QIODevice::Append);
|
||||||
|
|
Loading…
Reference in a new issue