gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r24031 - gnunet/src/fs


From: gnunet
Subject: [GNUnet-SVN] r24031 - gnunet/src/fs
Date: Thu, 27 Sep 2012 09:46:39 +0200

Author: grothoff
Date: 2012-09-27 09:46:39 +0200 (Thu, 27 Sep 2012)
New Revision: 24031

Modified:
   gnunet/src/fs/fs_dirmetascan.c
Log:
-trying to fix unindex trouble on keyword extraction

Modified: gnunet/src/fs/fs_dirmetascan.c
===================================================================
--- gnunet/src/fs/fs_dirmetascan.c      2012-09-27 07:36:20 UTC (rev 24030)
+++ gnunet/src/fs/fs_dirmetascan.c      2012-09-27 07:46:39 UTC (rev 24031)
@@ -415,6 +415,23 @@
 
 
 /**
+ * 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.
  *
  * @param filename name of the directory to scan
@@ -458,9 +475,9 @@
                                    "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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]