From: "Fabio M. Di Nitto" <fdinitto@xxxxxxxxxx> Signed-off-by: Fabio M. Di Nitto <fdinitto@xxxxxxxxxx> --- :100644 100644 ff0a085... 033012f... M test/testvotequorum1.c test/testvotequorum1.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/testvotequorum1.c b/test/testvotequorum1.c index ff0a085..033012f 100644 --- a/test/testvotequorum1.c +++ b/test/testvotequorum1.c @@ -165,8 +165,12 @@ int main(int argc, char *argv[]) printf("Waiting for votequorum events, press ^C to finish\n"); printf("-------------------\n"); - while (1) - votequorum_dispatch(g_handle, CS_DISPATCH_ALL); + while (1) { + if (votequorum_dispatch(g_handle, CS_DISPATCH_ALL) != CS_OK) { + fprintf(stderr, "votequorum_dispatch error\n"); + return -1; + } + } return 0; } -- 1.7.7.6 _______________________________________________ discuss mailing list discuss@xxxxxxxxxxxx http://lists.corosync.org/mailman/listinfo/discuss