if (ST_OK != stonithd_signon("STONITH_RA_EXEC")) { 
g_snprintf(buffer_tmp, sizeof(buffer_tmp), "%s_%d" , 	"STONITH_RA_EXEC", getpid()); if (ST_OK != stonithd_signon(buffer_tmp)) { 
execra(const char * rsc_id, const char * rsc_type, const char * provider,       const char * op_type,const int timeout, GHashTable * params){	stonithRA_ops_t * op;	int call_id = -1;	/* Handling "meta-data" operation in a special way.	 * Now handle "meta-data" operation locally. 	 * Should be changed in the future?	 */	if ( 0 == STRNCMP_CONST(op_type, "meta-data")) {		char * tmp;		tmp = get_resource_meta(rsc_type, provider);		printf("%s", tmp);		g_free(tmp);		exit(0);	}	if (ST_OK != stonithd_signon("STONITH_RA_EXEC")) {		cl_log(LOG_ERR, "STONITH_RA_EXEC: Cannot sign on the stonithd.");		exit(EXECRA_UNKNOWN_ERROR);	}	stonithd_set_stonithRA_ops_callback(stonithRA_ops_callback, &call_id);	/* Temporarily donnot use it, but how to deal with the global OCF 	 * variables. This is a important thing to think about and do.	 */	/* send the RA operation to stonithd to simulate a RA's actions */	cl_log(LOG_DEBUG, "Will send the stonith RA operation to stonithd: "		"%s %s", rsc_type, op_type);	op = g_new(stonithRA_ops_t, 1);	op->ra_name = g_strdup(rsc_type);	op->op_type = g_strdup(op_type);	op->params = params;	op->rsc_id = g_strdup(rsc_id);	if (ST_OK != stonithd_virtual_stonithRA_ops(op, &call_id)) {		cl_log(LOG_ERR, "sending stonithRA op to stonithd failed.");		/* Need to improve the granularity for error return code */		stonithd_signoff();		exit(EXECRA_EXEC_UNKNOWN_ERROR);	}	cl_log(LOG_DEBUG, "Waiting until the final result returned.");	/* May be redundant */	/*	while (stonithd_op_result_ready() != TRUE) {		;	}	*/	cl_log(LOG_DEBUG, "Will call stonithd_receive_ops_result.");	if (ST_OK != stonithd_receive_ops_result(TRUE)) {		cl_log(LOG_ERR, "stonithd_receive_ops_result failed.");		/* Need to improve the granularity for error return code */		stonithd_signoff();		exit(EXECRA_EXEC_UNKNOWN_ERROR);	}	/* exit_value will be setted by the callback function */	g_free(op->ra_name);	g_free(op->op_type);	g_free(op->rsc_id);	g_free(op);	stonithd_signoff();	cl_log(LOG_DEBUG, "stonithRA orignal exit code=%d", exit_value);	exit(map_ra_retvalue(exit_value, op_type, NULL));}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/462012840fc8dd69d566a2db6838f8bb6ea3ba0f/raexecstonith.c/buggy/lib/plugins/lrm/raexecstonith.c