Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!ihnp4!chinet!hcfeams!sks From: sks@hcfeams.UUCP (Sam Spitzner) Newsgroups: net.news.b Subject: Re: Problem with inews. Message-ID: <271@hcfeams.UUCP> Date: Thu, 23-Oct-86 17:28:31 EDT Article-I.D.: hcfeams.271 Posted: Thu Oct 23 17:28:31 1986 Date-Received: Sat, 25-Oct-86 07:01:07 EDT References: <267@hcfeams.UUCP> Organization: ARSB support, Illinois Bell, Chicago, IL Lines: 23 Keywords: Won't update "active" file. Summary: fix with suggestion In article <267@hcfeams.UUCP>, sks@hcfeams.UUCP (Sam Spitzner) writes: > I recently installed news version B 2.11 beta 9/22/86. I am being > flooded with messages in my "log" file concerning "Cannot write > file, already exists." > The problem was traced to the active file not being updated > with articles posted on my machine. > I am running on a DEC 8600 running SVR2.0. The C compiler is > release 6.0. Any ideas as to where to look? The problem is in the fflush call following the fprintf. The resolution is to add the line "setbuf(actfp, NULL);" immediately following the xfopen(actfp, r+) call. This will turn off buffering for this file. This seems to be necessary only when writing partial lines. I don't know if this same problem exists with other machines running pure SVR2.0, but it seems like a minor fix to make (just in case). -- sks (Sam Spitzner) Email address: ihnp4!chinet!hcfeams!sks USnail address: 225 W. Randolph, HQ17B, Chicago, Il. 60606 Voice: (312) 727-5129