diff options
author | Arne H. Juul <arnej@pvv.ntnu.no> | 2016-06-24 13:17:12 +0200 |
---|---|---|
committer | Arne H. Juul <arnej@pvv.ntnu.no> | 2016-07-02 14:47:30 +0200 |
commit | bb94e3b36cce9d88ad24927445a372db03ef2b36 (patch) | |
tree | a2b7c9cc016a331ff338a06b2050ab083b996900 /fastos | |
parent | 7d6f65499de1db475df68d53ecda67160635ab35 (diff) |
avoid "unused result" warnings
Diffstat (limited to 'fastos')
-rw-r--r-- | fastos/src/vespa/fastos/unix_ipc.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/fastos/src/vespa/fastos/unix_ipc.cpp b/fastos/src/vespa/fastos/unix_ipc.cpp index 98833661a38..f4ee9a8779f 100644 --- a/fastos/src/vespa/fastos/unix_ipc.cpp +++ b/fastos/src/vespa/fastos/unix_ipc.cpp @@ -554,7 +554,10 @@ Run(FastOS_ThreadInterface *thisThread, void *arg) // Did someone want to wake us up from the poll() call? if (woken) { char dummy; - read(_wakeupPipe[0], &dummy, 1); + ssize_t nbrfp = read(_wakeupPipe[0], &dummy, 1); + if (nbrfp != 1) { + perror("FastOS_UNIX_IPCHelper wakeupPipe read failed"); + } } } free(fds); @@ -597,8 +600,11 @@ SendMessage (FastOS_UNIX_Process *xproc, const void *buffer, void FastOS_UNIX_IPCHelper::NotifyProcessListChange () { - char dummy = static_cast<char>(1); - write(_wakeupPipe[1], &dummy, 1); + char dummy = 'x'; + ssize_t nbwtp = write(_wakeupPipe[1], &dummy, 1); + if (nbwtp != 1) { + perror("FastOS_UNIX_IPCHelper: write to wakeupPipe failed"); + } } void FastOS_UNIX_IPCHelper::Exit () |