Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!ames!pasteur!helios.ee.lbl.gov!ace.ee.lbl.gov!leres From: leres@ace.ee.lbl.gov (Craig Leres) Newsgroups: comp.mail.mh Subject: Re: inc loses mail when file system full Message-ID: <2770@helios.ee.lbl.gov> Date: 5 Jun 89 23:29:53 GMT References: <2750@helios.ee.lbl.gov> <1959@ccncsu.ColoState.EDU> <1982@ccncsu.ColoState.EDU> Sender: usenet@helios.ee.lbl.gov Reply-To: leres@helios.ee.lbl.gov (Craig Leres) Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 16 Steve Dempsey writes: > I stand corrected. This is much simpler and works just as well. It > seems to me, however, that any such errors should be detected on read > or write long before closing the file. And why was this fix not included > in 6.6? It's certainly a good practice to check the return status of each and every system call. Meanwhile, the mechanism used by ferror() is pretty good; errors detected by fwrite() or fflush() set a bit that ferror() can be used to check. And I really don't care when the error is detected so long as my mail drop doesn't get clobbered. I suppose one reason my fix wasn't included in mh 6.6 is that I didn't implement it until a few weeks ago. Craig