Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uwm.edu!caen!ox.com!umich!terminator!pisa.citi.umich.edu!rees From: rees@pisa.citi.umich.edu (Jim Rees) Newsgroups: news.software.b Subject: Re: C news problem: spacefor script Message-ID: <504d639b.1bc5b@pisa.citi.umich.edu> Date: 11 Mar 91 15:49:06 GMT References: <1991Mar6.153527.10070@casbah.acns.nwu.edu> <1991Mar10.204709.10460@panix.uucp> Sender: usenet@terminator.cc.umich.edu (usenet news) Reply-To: rees@citi.umich.edu (Jim Rees) Organization: University of Michigan IFS Project Lines: 33 In article <1991Mar10.204709.10460@panix.uucp>, alexis@panix.uucp (Alexis Rosen) writes: Henry Spencer suggests, in a followup message, that some old uuxqt's were sloppy about closing files. This is the case with A/UX, and (after months of headscratching) when I finally came up with a workaround, Richard Todd mentioned in a followup posting that MultiMaxes had this problem too. This is an extreme example of vendors not fixing known bugs. I dug into my extensive uucp archives (Prof. Honeyman's office is next to mine) and found that this was fixed nearly ten years ago, at least in the Berkeley lineage. Here's the earliest version of this fix that I could find (who was aef?) diff -c -r old/uuxqt.c /usr/src/cmd/uucp/uuxqt.c *** old/uuxqt.c Wed Mar 9 07:54:26 1983 --- /usr/src/cmd/uucp/uuxqt.c Wed Feb 23 11:00:02 1983 *************** *** 202,207 sscanf(&buf[1], "%s", file); unlink(file); } unlink(xfile); } --- 217,224 ----- sscanf(&buf[1], "%s", file); unlink(file); } + /* fix the hanging open fd! (dpk.bmd70@BRL 10-26-81) --aef */ + fclose(xfp); unlink(xfile); }