diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-05-09 09:45:53 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-05-09 09:45:53 +0000 |
commit | efad1d6733cd7e75a4e6c846ad7c031a0167b8be (patch) | |
tree | 93c8d652b78ae04b5b4a5c8e1e8abe398d4dd8c7 /src/transport | |
parent | d96c9d244148f2ee984c206b71987ba6df0ec820 (diff) | |
download | gnunet-efad1d6733cd7e75a4e6c846ad7c031a0167b8be.tar.gz gnunet-efad1d6733cd7e75a4e6c846ad7c031a0167b8be.zip |
- 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.
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/plugin_transport_wlan.c | 2 | ||||
-rw-r--r-- | src/transport/test_plugin_transport.c | 4 |
2 files changed, 3 insertions, 3 deletions
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) | |||
1613 | } | 1613 | } |
1614 | if (NULL != plugin->suid_helper) | 1614 | if (NULL != plugin->suid_helper) |
1615 | { | 1615 | { |
1616 | GNUNET_HELPER_stop (plugin->suid_helper); | 1616 | GNUNET_HELPER_stop (plugin->suid_helper, GNUNET_NO); |
1617 | plugin->suid_helper = NULL; | 1617 | plugin->suid_helper = NULL; |
1618 | } | 1618 | } |
1619 | endpoint_next = plugin->mac_head; | 1619 | 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 () | |||
186 | 186 | ||
187 | if (NULL != suid_helper) | 187 | if (NULL != suid_helper) |
188 | { | 188 | { |
189 | GNUNET_HELPER_stop (suid_helper); | 189 | GNUNET_HELPER_stop (suid_helper, GNUNET_NO); |
190 | suid_helper = NULL; | 190 | suid_helper = NULL; |
191 | } | 191 | } |
192 | } | 192 | } |
@@ -252,7 +252,7 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
252 | 252 | ||
253 | if (NULL != suid_helper) | 253 | if (NULL != suid_helper) |
254 | { | 254 | { |
255 | GNUNET_HELPER_stop (suid_helper); | 255 | GNUNET_HELPER_stop (suid_helper, GNUNET_NO); |
256 | suid_helper = NULL; | 256 | suid_helper = NULL; |
257 | } | 257 | } |
258 | 258 | ||