if (!shuttingdown) { shuttingdown = 1;
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);
shutdown(int nsig){    static int	shuttingdown = 0;    CL_SIGNAL(nsig, shutdown);      if (!shuttingdown) {		shuttingdown = 1;    }    if (crmd_mainloop != NULL && g_main_is_running(crmd_mainloop)) {	    s_crmd_fsa(C_SHUTDOWN, I_SHUTDOWN, NULL);    } else {		exit(LSB_EXIT_OK);		    }}