*/
static char **argv2;
-/**
- * All our IP addresses
- */
-static char **our_addrs;
-
/**
* Pipe used to communicate shutdown via signal.
*/
*/
static enum GNUNET_OS_ProcessStatusType child_status;
-/**
- * how many IP addresses are currently assigned to us
- */
-static unsigned int num_addrs;
-
/**
* The shutdown task
*/
{
struct GNUNET_TESTBED_Host **hosts;
const struct GNUNET_CONFIGURATION_Handle *null_cfg;
- const char *host_ip;
char *tmpdir;
char *hostname;
size_t hostname_len;
unsigned int nhosts;
- if (0 == num_addrs)
- {
- GNUNET_break (0);
- ret = GNUNET_SYSERR;
- return;
- }
null_cfg = GNUNET_CONFIGURATION_create ();
nhosts = GNUNET_TESTBED_hosts_load_from_loadleveler (null_cfg, &hosts);
if (0 == nhosts)
}
if (NULL == strstr (GNUNET_TESTBED_host_get_hostname (hosts[0]), hostname))
{
- LOG_DEBUG ("Exiting as we are not the lowest host\n");
+ LOG_DEBUG ("Exiting as `%s' is not the lowest host\n", hostname);
GNUNET_free (hostname);
ret = GNUNET_OK;
return;
}
+ LOG_DEBUG ("Will be executing `%s' on host `%s'\n", argv2[0], hostname);
GNUNET_free (hostname);
destroy_hosts (hosts, nhosts);
tmpdir = getenv ("TMPDIR");