Re: [PATCH 2/9] testquorum: check for quorum_dispatch return code

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

 



Reviewed-by: Steven Dake <sdake@xxxxxxxxxx>

On 02/07/2012 03:22 AM, Fabio M. Di Nitto wrote:
> From: "Fabio M. Di Nitto" <fdinitto@xxxxxxxxxx>
> 
> Signed-off-by: Fabio M. Di Nitto <fdinitto@xxxxxxxxxx>
> ---
> :100644 100644 0c4ec6f... 52ae562... M	test/testquorum.c
>  test/testquorum.c |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
> 
> diff --git a/test/testquorum.c b/test/testquorum.c
> index 0c4ec6f..52ae562 100644
> --- a/test/testquorum.c
> +++ b/test/testquorum.c
> @@ -55,7 +55,10 @@ int main(int argc, char *argv[])
>  	printf("-------------------\n");
>  
>  	while (1)
> -		quorum_dispatch(g_handle, CS_DISPATCH_ALL);
> +		if (quorum_dispatch(g_handle, CS_DISPATCH_ALL) != CS_OK) {
> +			fprintf(stderr, "Error from quorum_dispatch\n");
> +			return -1;
> +		}
>  
>  	return 0;
>  }

_______________________________________________
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