chiark / gitweb /
Adjust INNLOGSET to have debug instead of trace, as current libinn2 does
[innduct.git] / defer.c
diff --git a/defer.c b/defer.c
index 811907e52fbc25eda4aa8cab16400a3e5af09feb..99555deafcd574b6debf651466f77a9e612bec72 100644 (file)
--- a/defer.c
+++ b/defer.c
 
 /*---------- defer and backlog files ----------*/
 
+/*
+ * Backlog files are also processed by innduct.  We find the oldest
+ * backlog file which is at least a certain amount old, and feed it
+ * back into our processing.  When every article in it has been read
+ * and processed, we unlink it and look for another backlog file.
+ *
+ * If we don't have a backlog file that we're reading, we close the
+ * defer file that we're writing and make it into a backlog file at
+ * the first convenient opportunity.
+ */
+
 void open_defer(void) {
   struct stat stab;
 
@@ -94,7 +105,7 @@ void close_defer(void) {
 
   time_t now= xtime();
 
-  char *backlog= xasprintf("%s_backlog_%lu.%lu", feedfile,
+  char *backlog= masprintf("%s_backlog_%lu.%lu", feedfile,
                           (unsigned long)now,
                           (unsigned long)stab.st_ino);
   if (link(path_defer, backlog))