CRM_DEBUG("Invoking FSA with I_SHUTDOWN"); s_crmd_fsa(C_SHUTDOWN, I_SHUTDOWN, NULL);
if(is_set(fsa_input_register, R_SHUTDOWN)) { CRM_DEBUG("Escalating the shutdown"); s_crmd_fsa(C_SHUTDOWN, I_ERROR, NULL);  } else { set_bit_inplace(&fsa_input_register, R_SHUTDOWN);   startTimer(shutdown_escalation_timmer);  s_crmd_fsa(C_SHUTDOWN, I_SHUTDOWN, NULL); }
shutdown(int nsig){	FNIN();    	CL_SIGNAL(nsig, shutdown);	set_bit_inplace(&fsa_input_register, R_SHUTDOWN);	startTimer(shutdown_escalation_timmer);    	if (crmd_mainloop != NULL && g_main_is_running(crmd_mainloop)) {    		CRM_DEBUG("Invoking FSA with I_SHUTDOWN");		s_crmd_fsa(C_SHUTDOWN, I_SHUTDOWN, NULL);	    	} else {		CRM_DEBUG("exit from shutdown");		exit(LSB_EXIT_OK);	    	}	FNOUT();}