From: Christian Grothoff Date: Thu, 27 Sep 2012 07:46:39 +0000 (+0000) Subject: -trying to fix unindex trouble on keyword extraction X-Git-Tag: initial-import-from-subversion-38251~11647 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b1cac3b01fb0c2b8b213c65635f43b37ca872869;p=oweals%2Fgnunet.git -trying to fix unindex trouble on keyword extraction --- diff --git a/src/fs/fs_dirmetascan.c b/src/fs/fs_dirmetascan.c index fb20a2b37..0afec3886 100644 --- a/src/fs/fs_dirmetascan.c +++ b/src/fs/fs_dirmetascan.c @@ -414,6 +414,23 @@ process_helper_msgs (void *cls, } +/** + * Function called if our helper process died. + * + * @param cls the 'struct GNUNET_FS_DirScanner' callback. + */ +static void +helper_died_cb (void *cls) +{ + struct GNUNET_FS_DirScanner *ds = cls; + + ds->helper = NULL; + ds->progress_callback (ds->progress_callback_cls, + NULL, GNUNET_SYSERR, + GNUNET_FS_DIRSCANNER_INTERNAL_ERROR); +} + + /** * Start a directory scanner thread. * @@ -458,9 +475,9 @@ GNUNET_FS_directory_scan_start (const char *filename, "gnunet-helper-fs-publish", ds->args, &process_helper_msgs, - NULL, ds); + &helper_died_cb, ds); if (NULL == ds->helper) - { + { GNUNET_free (filename_expanded); GNUNET_free (ds); return NULL;