MCPcopy Create free account
hub / github.com/corosync/corosync / main_service_ready

Function main_service_ready

exec/main.c:1080–1100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1078}
1079
1080static 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
1102static enum e_corosync_done corosync_flock (const char *lockfile, pid_t pid)
1103{

Callers

nothing calls this directly

Calls 6

cs_ipcs_initFunction · 0.85
sync_initFunction · 0.85

Tested by

no test coverage detected