static int  crm_realtime = 1; if (crm_realtime == 1){ cl_enable_realtime(); }else if (crm_realtime == 0){ cl_disable_realtime(); } cl_make_realtime(SCHED_RR, 5, 64, 64); 
static int  crm_realtime = 1; if (crm_realtime == 1){ cl_enable_realtime(); }else if (crm_realtime == 0){ cl_disable_realtime(); } cl_make_realtime(SCHED_RR, 5, 64, 64); 
init_start(void){    long pid;    if ((pid = get_running_pid(PID_FILE, NULL)) > 0) {		cl_log(LOG_CRIT, "already running: [pid %ld].", pid);		exit(LSB_EXIT_OK);    }      cl_log_set_logfile(DAEMON_LOG);//    if (crm_debug()) {    cl_log_set_debugfile(DAEMON_DEBUG);//    }    /* change the logging facility to the one used by heartbeat daemon */    ll_cluster_t*	hb_fd = ll_cluster_new("heartbeat");        int facility;    cl_log(LOG_INFO, "Switching to Heartbeat logger");    if ((facility = hb_fd->llc_ops->get_logfacility(hb_fd))>0) {		cl_log_set_facility(facility);    }        cl_log(LOG_INFO, "Register PID");    register_pid(PID_FILE, FALSE, shutdown);    IPC_Channel *crm_ch = init_client_ipc_comms("crmd",						default_ipc_input_dispatch,						NULL);    send_hello_message(crm_ch, "1234", CRM_SYSTEM_TENGINE, "0", "1");    /* Create the mainloop and run it... */    mainloop = g_main_new(FALSE);    cl_log(LOG_INFO, "Starting %s", crm_system_name);    G_main_add_IPC_Channel(G_PRIORITY_LOW,			   crm_ch,			   FALSE, 			   default_ipc_input_dispatch,			   crm_ch, 			   default_ipc_input_destroy);            #ifdef REALTIME_SUPPORT	static int  crm_realtime = 1;    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();      if (unlink(PID_FILE) == 0) {		cl_log(LOG_INFO, "[%s] stopped", crm_system_name);    }    return 0;}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/a5253dddadd71cf2981a57621ef207f9dfc167d0/tenginemain.c/buggy/crm/tengine/tenginemain.c