mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-03 05:05:29 +00:00
testquorum: check for quorum_dispatch return code
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com> Reviewed-by: Steven Dake <sdake@redhat.com>
This commit is contained in:
parent
81e4785119
commit
dfb3cd693a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user