Signed-off-by: Angus Salkeld <[email protected]>
---
 lib/coroipcc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/coroipcc.c b/lib/coroipcc.c
index 1e93b25..c66d687 100644
--- a/lib/coroipcc.c
+++ b/lib/coroipcc.c
@@ -551,8 +551,8 @@ retry_semwait:
                pfd.fd = ipc_instance->fd;
                pfd.events = 0;
 
-               poll (&pfd, 1, 0);
-               if (pfd.revents == POLLERR || pfd.revents == POLLHUP) {
+               res = poll (&pfd, 1, 0);
+               if (res == -1 || pfd.revents == POLLERR || pfd.revents == 
POLLHUP) {
                        return (CS_ERR_LIBRARY);
                }
 
-- 
1.6.6.1

_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to