aboutsummaryrefslogtreecommitdiff
path: root/src/vpn/gnunet-daemon-vpn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpn/gnunet-daemon-vpn.c')
-rw-r--r--src/vpn/gnunet-daemon-vpn.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/vpn/gnunet-daemon-vpn.c b/src/vpn/gnunet-daemon-vpn.c
index 1e0afea35..8424e9887 100644
--- a/src/vpn/gnunet-daemon-vpn.c
+++ b/src/vpn/gnunet-daemon-vpn.c
@@ -29,7 +29,6 @@
29#include "gnunet-vpn-packet.h" 29#include "gnunet-vpn-packet.h"
30#include "gnunet-vpn-pretty-print.h" 30#include "gnunet-vpn-pretty-print.h"
31#include "gnunet_common.h" 31#include "gnunet_common.h"
32#include <gnunet_os_lib.h>
33#include "gnunet_protocols.h" 32#include "gnunet_protocols.h"
34#include <gnunet_mesh_service.h> 33#include <gnunet_mesh_service.h>
35#include "gnunet_client_lib.h" 34#include "gnunet_client_lib.h"
@@ -61,14 +60,7 @@ cleanup(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tskctx) {
61 GNUNET_assert (0 != (tskctx->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)); 60 GNUNET_assert (0 != (tskctx->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN));
62 61
63 /* stop the helper */ 62 /* stop the helper */
64 if (helper_proc != NULL) 63 cleanup_helper(helper_handle);
65 {
66 if (0 != GNUNET_OS_process_kill (helper_proc, SIGTERM))
67 GNUNET_log_strerror(GNUNET_ERROR_TYPE_WARNING, "kill");
68 GNUNET_OS_process_wait (helper_proc);
69 GNUNET_OS_process_close (helper_proc);
70 helper_proc = NULL;
71 }
72 64
73 /* close the connection to the service-dns */ 65 /* close the connection to the service-dns */
74 if (dns_connection != NULL) 66 if (dns_connection != NULL)
@@ -478,7 +470,6 @@ run (void *cls,
478 NULL, 470 NULL,
479 NULL, 471 NULL,
480 handlers); 472 handlers);
481 mst = GNUNET_SERVER_mst_create(&message_token, NULL);
482 cfg = cfg_; 473 cfg = cfg_;
483 restart_hijack = 0; 474 restart_hijack = 0;
484 hashmap = GNUNET_CONTAINER_multihashmap_create(65536); 475 hashmap = GNUNET_CONTAINER_multihashmap_create(65536);