signoned_to_stonithd = TRUE;
signedon_to_stonithd = TRUE;
get_resource_list(GList ** rsc_info){	cl_log(LOG_ERR, "get_resource_list: begin.");	if ( rsc_info == NULL ) {		cl_log(LOG_ERR, "Parameter error: get_resource_list");		return -2;	}	if ( *rsc_info != NULL ) {		cl_log(LOG_ERR, "Parameter error: get_resource_list."\			"will cause memory leak.");		*rsc_info = NULL;	}	if (signoned_to_stonithd == FALSE) {		if (ST_OK != stonithd_signon("STONITH_RA")) {			cl_log(LOG_ERR, "Can not signon to the stonithd.");			return -1;		} else {			signoned_to_stonithd = TRUE;		}	}	return stonithd_list_stonith_types(rsc_info);}