Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site axiom.UUCP Path: utzoo!linus!axiom!smk From: smk@axiom.UUCP (Steven M. Kramer) Newsgroups: net.news.b Subject: a case of no fclose in vnews Message-ID: <473@axiom.UUCP> Date: Wed, 25-Jan-84 10:36:25 EST Article-I.D.: axiom.473 Posted: Wed Jan 25 10:36:25 1984 Date-Received: Fri, 27-Jan-84 08:44:51 EST Organization: Axiom Technology, Newton MA Lines: 43 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)