| 1078 | } |
| 1079 | |
| 1080 | static void main_service_ready (void) |
| 1081 | { |
| 1082 | int res; |
| 1083 | |
| 1084 | /* |
| 1085 | * This must occur after totempg is initialized because "this_ip" must be set |
| 1086 | */ |
| 1087 | res = corosync_service_defaults_link_and_init (api); |
| 1088 | if (res == -1) { |
| 1089 | log_printf (LOGSYS_LEVEL_ERROR, "Could not initialize default services"); |
| 1090 | corosync_exit_error (COROSYNC_DONE_INIT_SERVICES); |
| 1091 | } |
| 1092 | cs_ipcs_init(); |
| 1093 | corosync_totem_stats_init (); |
| 1094 | corosync_fplay_control_init (); |
| 1095 | corosync_force_gather_init (); |
| 1096 | |
| 1097 | sync_init ( |
| 1098 | corosync_sync_callbacks_retrieve, |
| 1099 | corosync_sync_completed); |
| 1100 | } |
| 1101 | |
| 1102 | static enum e_corosync_done corosync_flock (const char *lockfile, pid_t pid) |
| 1103 | { |
nothing calls this directly
no test coverage detected