chiark / gitweb /
check for inotify.h
[innduct.git] / defer.c
diff --git a/defer.c b/defer.c
index 811907e52fbc25eda4aa8cab16400a3e5af09feb..ba2b302abd46e14737c148c0cffecb5edbb14a94 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;