diff options
Diffstat (limited to 'src/testbed/gnunet_testbed_mpi_spawn.c')
-rw-r--r-- | src/testbed/gnunet_testbed_mpi_spawn.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/testbed/gnunet_testbed_mpi_spawn.c b/src/testbed/gnunet_testbed_mpi_spawn.c index 736cd0cca..c7b7aab0b 100644 --- a/src/testbed/gnunet_testbed_mpi_spawn.c +++ b/src/testbed/gnunet_testbed_mpi_spawn.c | |||
@@ -56,11 +56,6 @@ static unsigned long child_exit_code; | |||
56 | static enum GNUNET_OS_ProcessStatusType child_status; | 56 | static enum GNUNET_OS_ProcessStatusType child_status; |
57 | 57 | ||
58 | /** | 58 | /** |
59 | * how many IP addresses are currently assigned to us | ||
60 | */ | ||
61 | static unsigned int num_addrs; | ||
62 | |||
63 | /** | ||
64 | * The shutdown task | 59 | * The shutdown task |
65 | */ | 60 | */ |
66 | static GNUNET_SCHEDULER_TaskIdentifier shutdown_task_id; | 61 | static GNUNET_SCHEDULER_TaskIdentifier shutdown_task_id; |
@@ -196,12 +191,6 @@ run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
196 | size_t hostname_len; | 191 | size_t hostname_len; |
197 | unsigned int nhosts; | 192 | unsigned int nhosts; |
198 | 193 | ||
199 | if (0 == num_addrs) | ||
200 | { | ||
201 | GNUNET_break (0); | ||
202 | ret = GNUNET_SYSERR; | ||
203 | return; | ||
204 | } | ||
205 | null_cfg = GNUNET_CONFIGURATION_create (); | 194 | null_cfg = GNUNET_CONFIGURATION_create (); |
206 | nhosts = GNUNET_TESTBED_hosts_load_from_loadleveler (null_cfg, &hosts); | 195 | nhosts = GNUNET_TESTBED_hosts_load_from_loadleveler (null_cfg, &hosts); |
207 | if (0 == nhosts) | 196 | if (0 == nhosts) |
@@ -222,11 +211,12 @@ run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
222 | } | 211 | } |
223 | if (NULL == strstr (GNUNET_TESTBED_host_get_hostname (hosts[0]), hostname)) | 212 | if (NULL == strstr (GNUNET_TESTBED_host_get_hostname (hosts[0]), hostname)) |
224 | { | 213 | { |
225 | LOG_DEBUG ("Exiting as we are not the lowest host\n"); | 214 | LOG_DEBUG ("Exiting as `%s' is not the lowest host\n", hostname); |
226 | GNUNET_free (hostname); | 215 | GNUNET_free (hostname); |
227 | ret = GNUNET_OK; | 216 | ret = GNUNET_OK; |
228 | return; | 217 | return; |
229 | } | 218 | } |
219 | LOG_DEBUG ("Will be executing `%s' on host `%s'\n", argv2[0], hostname); | ||
230 | GNUNET_free (hostname); | 220 | GNUNET_free (hostname); |
231 | destroy_hosts (hosts, nhosts); | 221 | destroy_hosts (hosts, nhosts); |
232 | tmpdir = getenv ("TMPDIR"); | 222 | tmpdir = getenv ("TMPDIR"); |