🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.mh
Article #1911

Re: inc loses mail when file system full

#1911
From: Craig Leres
Date: Mon, 05 Jun 1989 23:29
16 lines
1255 bytes
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
Technical Details
Message-ID: <2770@helios.ee.lbl.gov>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!ames!pasteur!helios.ee.lbl.gov!ace.ee.lbl.gov!leres
References: <2750@helios.ee.lbl.gov> <1959@ccncsu.ColoState.EDU> <1982@ccncsu.ColoState.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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