Signed-off-by: Jan Friesse <jfriesse@xxxxxxxxxx> --- include/corosync/coroipc_ipc.h | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/include/corosync/coroipc_ipc.h b/include/corosync/coroipc_ipc.h index ebba342..99c8bd0 100644 --- a/include/corosync/coroipc_ipc.h +++ b/include/corosync/coroipc_ipc.h @@ -243,9 +243,7 @@ retry_poll: } if (res == 1) { - if (pfd.revents == POLLERR || - pfd.revents == POLLHUP || - pfd.revents == POLLNVAL) { + if (pfd.revents & (POLLERR|POLLHUP|POLLNVAL)) { return (CS_ERR_LIBRARY); } -- 1.7.1 _______________________________________________ discuss mailing list discuss@xxxxxxxxxxxx http://lists.corosync.org/mailman/listinfo/discuss