CLU_GET_EVENT(3)

NAME
clu_get_event - Obtain an event description of whatever made

SYNOPSIS
#include <magma.h>

int clu_get_event(int fd);

DESCRIPTION

The clu_get_event() function retrieves an event from an active cluster file descriptor fd.

RETURN VALUE

CEV_NULL - Spurious Event Wakeup

CEV_SHUTDOWN - Local node left or is leaving the cluster.

CEV_MEMB_CHANGE - Change in membership / Node transition. This should only be handled when the local node is quorate, and should be ignored at all other times. Generally, programs ought to call clu_member_list() to retrieve the active membership after this event is received. It is up to the caller to figure out the differences in the membership lists.

CEV_QUORATE - The local node is now a part of the cluster quorum. Generally, programs ought to call clu_member_list() to retrieve the active membership after this event is received.

CEV_INQUORATE - The local node is no longer a part of the cluster quorum; expect to be fenced.

SEE ALSO
clu_connect(3), clu_disconnect(3), clu_member_list(3)