[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r23489 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r23489 - gnunet/src/transport |
Date: |
Wed, 29 Aug 2012 11:05:25 +0200 |
Author: wachs
Date: 2012-08-29 11:05:25 +0200 (Wed, 29 Aug 2012)
New Revision: 23489
Modified:
gnunet/src/transport/plugin_transport_unix.c
gnunet/src/transport/test_plugin_transport.c
Log:
- fix for unix
Modified: gnunet/src/transport/plugin_transport_unix.c
===================================================================
--- gnunet/src/transport/plugin_transport_unix.c 2012-08-29 08:14:22 UTC
(rev 23488)
+++ gnunet/src/transport/plugin_transport_unix.c 2012-08-29 09:05:25 UTC
(rev 23489)
@@ -1363,11 +1363,19 @@
GNUNET_free (api);
return NULL;
}
+
+ plugin->env->notify_address (plugin->env->cls, GNUNET_NO,
+ plugin->unix_socket_path,
+ strlen (plugin->unix_socket_path) + 1,
+ "unix");
+
unix_transport_server_stop (plugin);
+
GNUNET_CONTAINER_multihashmap_iterate (plugin->session_map,
&get_session_delete_it, plugin);
GNUNET_CONTAINER_multihashmap_destroy (plugin->session_map);
+
if (NULL != plugin->rs)
GNUNET_NETWORK_fdset_destroy (plugin->rs);
if (NULL != plugin->ws)
Modified: gnunet/src/transport/test_plugin_transport.c
===================================================================
--- gnunet/src/transport/test_plugin_transport.c 2012-08-29 08:14:22 UTC
(rev 23488)
+++ gnunet/src/transport/test_plugin_transport.c 2012-08-29 09:05:25 UTC
(rev 23489)
@@ -142,6 +142,9 @@
static void
end ()
{
+ struct AddressWrapper *w;
+ int c = 0;
+
if (GNUNET_SCHEDULER_NO_TASK != timeout_task)
{
GNUNET_SCHEDULER_cancel (timeout_task);
@@ -149,6 +152,26 @@
}
if (NULL != api)
GNUNET_PLUGIN_unload (libname, api);
+
+ while (NULL != head)
+ {
+ w = head;
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ _("Plugin did not remove address `%s' \n"), w->addrstring);
+ GNUNET_CONTAINER_DLL_remove (head, tail, w);
+ c ++;
+ GNUNET_free (w->addr);
+ GNUNET_free (w->addrstring);
+ GNUNET_free (w);
+ }
+ if (c > 0)
+ {
+ GNUNET_break (0);
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ _("Plugin did not remove %u addresses \n"), c);
+ }
+
+
GNUNET_free (libname);
libname = NULL;
GNUNET_STATISTICS_destroy (stats, GNUNET_NO);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r23489 - gnunet/src/transport,
gnunet <=