From efad1d6733cd7e75a4e6c846ad7c031a0167b8be Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Thu, 9 May 2013 09:45:53 +0000 Subject: - complement HELPER API with functions to kill and wait on the helper process - To shutdown quickly, have testbed first kill all sub-controller's helper processes first and wait later instead of kill & wait per each processes. --- src/transport/plugin_transport_wlan.c | 2 +- src/transport/test_plugin_transport.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/transport') diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index 223791e18..5b4e702e5 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c @@ -1613,7 +1613,7 @@ libgnunet_plugin_transport_wlan_done (void *cls) } if (NULL != plugin->suid_helper) { - GNUNET_HELPER_stop (plugin->suid_helper); + GNUNET_HELPER_stop (plugin->suid_helper, GNUNET_NO); plugin->suid_helper = NULL; } endpoint_next = plugin->mac_head; diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c index 58fd07c78..9b1760919 100644 --- a/src/transport/test_plugin_transport.c +++ b/src/transport/test_plugin_transport.c @@ -186,7 +186,7 @@ end () if (NULL != suid_helper) { - GNUNET_HELPER_stop (suid_helper); + GNUNET_HELPER_stop (suid_helper, GNUNET_NO); suid_helper = NULL; } } @@ -252,7 +252,7 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) if (NULL != suid_helper) { - GNUNET_HELPER_stop (suid_helper); + GNUNET_HELPER_stop (suid_helper, GNUNET_NO); suid_helper = NULL; } -- cgit v1.2.3