sbsv2/raptor/util/talon/talon.c
branchfix
changeset 285 1cdb9a551505
parent 283 a5284ec02d61
child 287 4c84bb0f4c67
equal deleted inserted replaced
284:2c24e0d7a5d4 285:1cdb9a551505
   341 
   341 
   342 	/* remove any leading white space on the recipe */
   342 	/* remove any leading white space on the recipe */
   343 	while (isspace(*recipe))
   343 	while (isspace(*recipe))
   344 		recipe++;
   344 		recipe++;
   345 
   345 
   346 
       
   347 
       
   348 
       
   349 	/* turn debugging on? */
   346 	/* turn debugging on? */
   350 	char *debugstr=talon_getenv("TALON_DEBUG");
   347 	char *debugstr=talon_getenv("TALON_DEBUG");
   351 
   348 
   352 	if (debugstr)
   349 	if (debugstr)
   353 	{
   350 	{
   358 	DEBUG(("talon: recipe: %s\n", recipe));
   355 	DEBUG(("talon: recipe: %s\n", recipe));
   359 
   356 
   360 	/* Make sure that the agent's hostname can be put into the host attribute */
   357 	/* Make sure that the agent's hostname can be put into the host attribute */
   361 	char hostname[HOSTNAME_MAX];
   358 	char hostname[HOSTNAME_MAX];
   362 	int hostresult=0;
   359 	int hostresult=0;
   363 
       
   364 	
   360 	
   365 	hostresult = gethostname(hostname, HOSTNAME_MAX-1);
   361 	hostresult = gethostname(hostname, HOSTNAME_MAX-1);
   366 	if (0 != hostresult)
   362 	if (0 != hostresult)
   367 	{
   363 	{
   368 		DEBUG(("talon: failed to get hostname: %d\n", hostresult));
   364 		DEBUG(("talon: failed to get hostname: %d\n", hostresult));