aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_dirmetascan.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-09-27 07:46:39 +0000
committerChristian Grothoff <christian@grothoff.org>2012-09-27 07:46:39 +0000
commitb1cac3b01fb0c2b8b213c65635f43b37ca872869 (patch)
tree37d282e0e5526e7a2fa5f64f14e77f2520ce2141 /src/fs/fs_dirmetascan.c
parent1b592499ba6f6d2b15306407760c989553a3c5b6 (diff)
downloadgnunet-b1cac3b01fb0c2b8b213c65635f43b37ca872869.tar.gz
gnunet-b1cac3b01fb0c2b8b213c65635f43b37ca872869.zip
-trying to fix unindex trouble on keyword extraction
Diffstat (limited to 'src/fs/fs_dirmetascan.c')
-rw-r--r--src/fs/fs_dirmetascan.c21
1 files changed, 19 insertions, 2 deletions
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
@@ -415,6 +415,23 @@ process_helper_msgs (void *cls,
415 415
416 416
417/** 417/**
418 * Function called if our helper process died.
419 *
420 * @param cls the 'struct GNUNET_FS_DirScanner' callback.
421 */
422static void
423helper_died_cb (void *cls)
424{
425 struct GNUNET_FS_DirScanner *ds = cls;
426
427 ds->helper = NULL;
428 ds->progress_callback (ds->progress_callback_cls,
429 NULL, GNUNET_SYSERR,
430 GNUNET_FS_DIRSCANNER_INTERNAL_ERROR);
431}
432
433
434/**
418 * Start a directory scanner thread. 435 * Start a directory scanner thread.
419 * 436 *
420 * @param filename name of the directory to scan 437 * @param filename name of the directory to scan
@@ -458,9 +475,9 @@ GNUNET_FS_directory_scan_start (const char *filename,
458 "gnunet-helper-fs-publish", 475 "gnunet-helper-fs-publish",
459 ds->args, 476 ds->args,
460 &process_helper_msgs, 477 &process_helper_msgs,
461 NULL, ds); 478 &helper_died_cb, ds);
462 if (NULL == ds->helper) 479 if (NULL == ds->helper)
463 { 480 {
464 GNUNET_free (filename_expanded); 481 GNUNET_free (filename_expanded);
465 GNUNET_free (ds); 482 GNUNET_free (ds);
466 return NULL; 483 return NULL;