1SAM_STOP(3) Corosync Cluster Engine Programmer's Manual SAM_STOP(3)
2
3
4
6 sam_stop - Stop health checking
7
8
10 #include <corosync/sam.h>
11
12
13 cs_error_t sam_stop (void);
14
15
17 The sam_stop function is used to stop health checking of an active
18 process. After calling this function, the application no longer should
19 send helathchecks. In the case of event driven healthchecking, the
20 healthchecking thread will be stopped.
21
22
23 A process can always start health checking again by calling
24 sam_start(3) function.
25
26
28 This call return CS_OK value if successful, otherwise and error is
29 returned.
30
31
33 CS_ERR_BAD_HANDLE
34 health checking was not started by calling sam_start(3) func‐
35 tion.
36
37
39 sam_start(3)
40
41 CS_ERR_TRY_AGAIN Resource temporarily unavailable
42
43 CS_ERR_INVALID_PARAM Invalid argument
44
45 CS_ERR_ACCESS Permission denied
46
47 CS_ERR_LIBRARY The connection failed
48
49 CS_ERR_INTERRUPT System call interrupted by a signal
50
51 CS_ERR_NOT_SUPPORTED The requested protocol/functionality not supported
52
53 CS_ERR_MESSAGE_ERROR Incorrect auth message received
54
55 CS_ERR_NO_MEMORY Not enough memory to complete the requested task
56
57
58
59corosync Man Page 12/01/2009 SAM_STOP(3)