diff options
author | Miroslav Safr <miroslav.safr@tieto.com> | 2010-11-12 09:33:40 +0200 |
---|---|---|
committer | Miroslav Safr <miroslav.safr@tieto.com> | 2010-11-12 09:33:40 +0200 |
commit | 3dfb112cd343cccb6e17f024dcf681e26b78768e (patch) | |
tree | d9ba3d88c126baafbf2439c77d530d0e0b0fb0ac /mthemedaemon | |
parent | bcdbc70496dd928594060cda624dd53cb3c1d038 (diff) |
Changes: Meego builds: Integrated arm_read_write.patch
Diffstat (limited to 'mthemedaemon')
-rw-r--r-- | mthemedaemon/mthemedaemonserver.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/mthemedaemon/mthemedaemonserver.cpp b/mthemedaemon/mthemedaemonserver.cpp index 8ad2f9ff..dbbe008a 100644 --- a/mthemedaemon/mthemedaemonserver.cpp +++ b/mthemedaemon/mthemedaemonserver.cpp @@ -671,26 +671,30 @@ bool MThemeDaemonServer::createCacheDir(const QString& path) void MThemeDaemonServer::hupSignalHandler(int) { char a = 1; - ::write(sighupFd[0], &a, sizeof(a)); + ssize_t writtenBytes = ::write(sighupFd[0], &a, sizeof(a)); + Q_UNUSED(writtenBytes); } void MThemeDaemonServer::termSignalHandler(int) { char a = 1; - ::write(sigtermFd[0], &a, sizeof(a)); + ssize_t writtenBytes = ::write(sigtermFd[0], &a, sizeof(a)); + Q_UNUSED(writtenBytes); } void MThemeDaemonServer::intSignalHandler(int) { char a = 1; - ::write(sigintFd[0], &a, sizeof(a)); + ssize_t writtenBytes = ::write(sigintFd[0], &a, sizeof(a)); + Q_UNUSED(writtenBytes); } void MThemeDaemonServer::handleSigTerm() { snTerm->setEnabled(false); char tmp; - ::read(sigtermFd[1], &tmp, sizeof(tmp)); + ssize_t readBytes = ::read(sigtermFd[1], &tmp, sizeof(tmp)); + Q_UNUSED(readBytes); // kill the daemon so that it can save it's current state (caches, refcounts, etc) qApp->quit(); @@ -702,7 +706,8 @@ void MThemeDaemonServer::handleSigHup() { snHup->setEnabled(false); char tmp; - ::read(sighupFd[1], &tmp, sizeof(tmp)); + ssize_t readBytes = ::read(sighupFd[1], &tmp, sizeof(tmp)); + Q_UNUSED(readBytes); themeChanged(true); @@ -713,7 +718,8 @@ void MThemeDaemonServer::handleSigInt() { snInt->setEnabled(false); char tmp; - ::read(sigintFd[1], &tmp, sizeof(tmp)); + ssize_t readBytes = ::read(sigintFd[1], &tmp, sizeof(tmp)); + Q_UNUSED(readBytes); // kill the daemon so that it can save it's current state (caches, refcounts, etc) qApp->quit(); |