smk@axiom.UUCP (Steven M. Kramer) (01/25/84)
YACONF (Yet another case of no fclose). The fix is in the #ifdef
region. The problem was that the current article (the one on the
screen at the time) was never closed. People here who did repeated
K's eventually got the msg: cannot open ~/.newsrc (or something like
that) after about 16-17 K's. (They don't believe in unsubscribing
I guess.)
Another 'bug' I saw was that in our vnews virtterm file is an unused
routine called clear. I #ifdef'd it out because of a widely used
macro called clear. It may eventually cause problems.
/* Punt rest of newsgroup */
case 'K':
strcpy(prompt,"Really? ");
msg("Kill all remaining articles in this newsgroup!");
if (vgetc() != 'y') {
msg ("Operation cancelled, response not 'y'");
break;
}
saveart;
while(bit <= ngsize && bit > 0) {
clear(bit);
nextbit();
}
#ifdef AXIOM
/* Remember to close the file. */
if (fp != NULL) {
fclose(fp);
fp = NULL;
}
#endif
break;
/* next newsgroup */
case 'N':
if (fp != NULL) {
--
--steve kramer
{allegra,genrad,ihnp4,utzoo,philabs,uw-beaver}!linus!axiom!smk (UUCP)
linus!axiom!smk@mitre-bedford (MIL)