NNTPC: Update daemon retries after failure to get list?

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

 



Ronald Florence wrote:
> Forgive me for beating this horse again, but I believe the code below
> from list.c explains why the update daemon (nntpcache-1.0) waits until
> the retry interval has expired, even after a failed attempt to get
> active or another list.

Yes, please try this patch.

It's also included with other patches at
	(f|ht)tp://greathan.apana.org.au/pub/nntpcache/nntpcache-1.0.1.patch

In particular, it includes Steiner Haug's fixes.

For the chdir problem, I simply removed the setGroup call in list.c because
that's the only place where the daemon actually sets CurrentDir and the daemon
is also the only one who chdirs without telling CurrentDir as far as I can
tell.

-- 
Debian GNU/Linux 1.2 is out! { http://www.debian.org/ }
Email:  Herbert Xu ~{PmV>HI~} <herbert@greathan.apana.org.au>
{ http://greathan.apana.org.au/~herbert/ }
PGP Key:  pgp-public-keys@pgp.mit.edu or any other key sites
--
diff -ur --new-file nntpcache-1.0.1.orig/list.c nntpcache-1.0.1/list.c
--- nntpcache-1.0.1.orig/list.c	Sat Nov  9 07:29:00 1996
+++ nntpcache-1.0.1/list.c	Thu Feb 13 17:07:14 1997
@@ -597,26 +596,26 @@
 			} else
 				if (pid == 0)
 #endif
-					getListServer(list, scfg);
-			switch (list->type)
-			{
-			case l_active:
-				scfg->active_rebuild = tim;
-				break;
-			case l_active_times:
-				scfg->active_times_rebuild = tim;
-				break;
-			case l_newsgroups:
-				scfg->newsgroups_rebuild = tim;
-				break;
+			if (getListServer(list, scfg) > 0)
+				switch (list->type)
+				{
+				case l_active:
+					scfg->active_rebuild = tim;
+					break;
+				case l_active_times:
+					scfg->active_times_rebuild = tim;
+					break;
+				case l_newsgroups:
+					scfg->newsgroups_rebuild = tim;
+					break;
 #ifndef MMALLOC
-			case l_overview_fmt:
-				scfg->overview_fmt_rebuild = tim;
-				break;
+				case l_overview_fmt:
+					scfg->overview_fmt_rebuild = tim;
+					break;
 #endif
-			default:
-				break;
-			}
+				default:
+					break;
+				}
 		}
 	}
 #ifdef MMALLOC


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux