1SAM_FINALIZE(3)   Corosync Cluster Engine Programmer's Manual  SAM_FINALIZE(3)
2
3
4

NAME

6       sam_finalize - Terminate SAM service
7
8

SYNOPSIS

10       #include <corosync/sam.h>
11
12
13       cs_error_t sam_finalize (void);
14
15

DESCRIPTION

17       The  sam_finalize  function is used to terminate SAM API. Once the con‐
18       nection is finalized, the SAM may not be  used  again  by  application.
19       Whole  functionality (health checking) will be stopped and after appli‐
20       cation fail, recovery action will not be taken.
21
22

RETURN VALUE

24       This call return CS_OK value if  successful,  otherwise  and  error  is
25       returned.
26
27

ERRORS

29       CS_ERR_BAD_HANDLE
30              library  was not initialized by sam_init(3) function or was fin‐
31              ished already.
32
33

SEE ALSO

35       sam_initialize(3)
36
37       CS_ERR_TRY_AGAIN Resource temporarily unavailable
38
39       CS_ERR_INVALID_PARAM Invalid argument
40
41       CS_ERR_ACCESS Permission denied
42
43       CS_ERR_LIBRARY The connection failed
44
45       CS_ERR_INTERRUPT System call interrupted by a signal
46
47       CS_ERR_NOT_SUPPORTED The requested protocol/functionality not supported
48
49       CS_ERR_MESSAGE_ERROR Incorrect auth message received
50
51       CS_ERR_NO_MEMORY Not enough memory to complete the requested task
52
53
54
55corosync Man Page                 12/01/2009                   SAM_FINALIZE(3)
Impressum