diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-10-05 11:31:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-10-05 11:31:56 +0000 |
commit | 2c932d1bfdf9120cf0ec8995b0ddc8f606b70f1a (patch) | |
tree | b21af847bf2824015766322c9793e7400b20ef76 /src/hostlist/test_gnunet_daemon_hostlist.c | |
parent | d67a58fd833e1cbe980799af5f89524dba36c500 (diff) | |
download | gnunet-2c932d1bfdf9120cf0ec8995b0ddc8f606b70f1a.tar.gz gnunet-2c932d1bfdf9120cf0ec8995b0ddc8f606b70f1a.zip |
fix
Diffstat (limited to 'src/hostlist/test_gnunet_daemon_hostlist.c')
-rw-r--r-- | src/hostlist/test_gnunet_daemon_hostlist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hostlist/test_gnunet_daemon_hostlist.c b/src/hostlist/test_gnunet_daemon_hostlist.c index 006c6b1d8..2c3647190 100644 --- a/src/hostlist/test_gnunet_daemon_hostlist.c +++ b/src/hostlist/test_gnunet_daemon_hostlist.c | |||
@@ -100,7 +100,7 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
100 | sleep (1); /* allow ARM to start */ | 100 | sleep (1); /* allow ARM to start */ |
101 | #endif | 101 | #endif |
102 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); | 102 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); |
103 | GNUNET_ARM_start_service ("core", p->cfg, sched, TIMEOUT, NULL, NULL); | 103 | GNUNET_ARM_start_services (p->cfg, sched, "core", NULL); |
104 | p->th = GNUNET_TRANSPORT_connect (sched, p->cfg, p, NULL, NULL, NULL); | 104 | p->th = GNUNET_TRANSPORT_connect (sched, p->cfg, p, NULL, NULL, NULL); |
105 | GNUNET_assert (p->th != NULL); | 105 | GNUNET_assert (p->th != NULL); |
106 | GNUNET_TRANSPORT_get_hello (p->th, TIMEOUT, &process_hello, p); | 106 | GNUNET_TRANSPORT_get_hello (p->th, TIMEOUT, &process_hello, p); |
@@ -125,6 +125,7 @@ run (void *cls, | |||
125 | static void | 125 | static void |
126 | stop_arm (struct PeerContext *p) | 126 | stop_arm (struct PeerContext *p) |
127 | { | 127 | { |
128 | GNUNET_ARM_stop_services (p->cfg, sched, "core", NULL); | ||
128 | #if START_ARM | 129 | #if START_ARM |
129 | if (0 != PLIBC_KILL (p->arm_pid, SIGTERM)) | 130 | if (0 != PLIBC_KILL (p->arm_pid, SIGTERM)) |
130 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); | 131 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); |