Re: [PATCH] coroipc: Handle pfd.revents as bit-field

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ACK

On 12/10/2012 10:38 AM, Jan Friesse wrote:
> 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);
>  				}
> 

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux