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

NAME

6       sam_mark_failed - Mark process failed
7
8

SYNOPSIS

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

DESCRIPTION

17       The  sam_mark_failed  function  is  used  with SAM_RECOVERY_POLICY_CMAP
18       mostly  together  with  SAM_RECOVERY_POLICY_RESTART  to  mark   process
19       failed. Process marked failed is killed without sending warn signal and
20       control process will  exit  as  with  SAM_RECOVERY_POLICY_QUIT  policy.
21       Condb  key  state  will  be set to failed so corosync watchdog can take
22       required action.
23
24

RETURN VALUE

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

ERRORS

31       CS_ERR_BAD_HANDLE
32              library  was not initialized by calling sam_initialize(3) or was
33              already finalized
34
35
36       CS_ERR_INVALID_PARAM
37              recovery policy doesn't has SAM_RECOVERY_POLICY_CMAP flag set
38
39
40       CS_ERR_LIBRARY
41              some internal error appeared (communication with parent process)
42
43

SEE ALSO

45       sam_initialize(3)
46
47       CS_ERR_TRY_AGAIN Resource temporarily unavailable
48
49       CS_ERR_INVALID_PARAM Invalid argument
50
51       CS_ERR_ACCESS Permission denied
52
53       CS_ERR_LIBRARY The connection failed
54
55       CS_ERR_INTERRUPT System call interrupted by a signal
56
57       CS_ERR_NOT_SUPPORTED The requested protocol/functionality not supported
58
59       CS_ERR_MESSAGE_ERROR Incorrect auth message received
60
61       CS_ERR_NO_MEMORY Not enough memory to complete the requested task
62
63
64
65corosync Man Page                 21/05/2010                       SAM_STOP(3)
Impressum