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/fs/fs_dirmetascan.c | |
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/fs/fs_dirmetascan.c')
-rw-r--r-- | src/fs/fs_dirmetascan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/fs_dirmetascan.c b/src/fs/fs_dirmetascan.c index e5a575a51..7139ea45a 100644 --- a/src/fs/fs_dirmetascan.c +++ b/src/fs/fs_dirmetascan.c | |||
@@ -102,7 +102,7 @@ GNUNET_FS_directory_scan_abort (struct GNUNET_FS_DirScanner *ds) | |||
102 | { | 102 | { |
103 | /* terminate helper */ | 103 | /* terminate helper */ |
104 | if (NULL != ds->helper) | 104 | if (NULL != ds->helper) |
105 | GNUNET_HELPER_stop (ds->helper); | 105 | GNUNET_HELPER_stop (ds->helper, GNUNET_NO); |
106 | 106 | ||
107 | /* free resources */ | 107 | /* free resources */ |
108 | if (NULL != ds->toplevel) | 108 | if (NULL != ds->toplevel) |
@@ -234,7 +234,7 @@ finish_scan (void *cls, | |||
234 | ds->stop_task = GNUNET_SCHEDULER_NO_TASK; | 234 | ds->stop_task = GNUNET_SCHEDULER_NO_TASK; |
235 | if (NULL != ds->helper) | 235 | if (NULL != ds->helper) |
236 | { | 236 | { |
237 | GNUNET_HELPER_stop (ds->helper); | 237 | GNUNET_HELPER_stop (ds->helper, GNUNET_NO); |
238 | ds->helper = NULL; | 238 | ds->helper = NULL; |
239 | } | 239 | } |
240 | ds->progress_callback (ds->progress_callback_cls, | 240 | ds->progress_callback (ds->progress_callback_cls, |