Gmain_timeout_add(1000, cib_msg_timeout, NULL);
init_start(void){	gboolean was_error = FALSE;#ifdef REALTIME_SUPPORT	static int  crm_realtime = 1;#endif	hb_conn = ll_cluster_new("heartbeat");	cib_register_ha(hb_conn, CRM_SYSTEM_CIB);	if(startCib(CIB_FILENAME) == FALSE){		crm_crit("Cannot start CIB... terminating");		exit(1);	}		was_error = init_server_ipc_comms(		crm_strdup("cib_callback"), cib_client_connect,		default_ipc_connection_destroy);	was_error = was_error || init_server_ipc_comms(		crm_strdup("cib_ro"), cib_client_connect,		default_ipc_connection_destroy);	was_error = was_error || init_server_ipc_comms(		crm_strdup("cib_rw"), cib_client_connect,		default_ipc_connection_destroy);	if(was_error == FALSE) {		/* Create the mainloop and run it... */		mainloop = g_main_new(FALSE);		crm_info("Starting %s mainloop", crm_system_name);		#ifdef REALTIME_SUPPORT		if (crm_realtime == 1) {			cl_enable_realtime();		} else if (crm_realtime == 0) {			cl_disable_realtime();		}		cl_make_realtime(SCHED_RR, 5, 64, 64);#endif		g_main_run(mainloop);		return_to_orig_privs();	} else {		crm_err("Couldnt start all communication channels, exiting.");	}		return 0;}