Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!mit-eddie!apollo!rees From: rees@apollo.uucp (Jim Rees) Newsgroups: news.software.b Subject: Fix for locked active file while unbatching Message-ID: <3581bf6f.b8ab@apollo.uucp> Date: Tue, 16-Jun-87 12:13:00 EDT Article-I.D.: apollo.3581bf6f.b8ab Posted: Tue Jun 16 12:13:00 1987 Date-Received: Sun, 21-Jun-87 07:30:09 EDT Organization: Apollo Computer, Chelmsford, Mass. Lines: 24 I would like to recommend the following fix, in checkbatch(), ifuncs.c. It's harmless on most machines, but on those machines that enforce implicit locking (Apollo is the one I use, but I know there are others as well) it's necessary. The idea is to close the active file before unpacking a batch, so it can be relocked for each individual article of the batch. *************** *** 1077,1082 #define CPBFSZ 8192 char buf[CPBFSZ]; filename = 0; do { while (strncmp(cmd, "#! rnews ", 9)) { --- 1077,1083 ----- #define CPBFSZ 8192 char buf[CPBFSZ]; + fclose(actfp); filename = 0; do { while (strncmp(cmd, "#! rnews ", 9)) {