On Fri, 22 Apr 2005, Sam Vilain wrote:

Eric Wilhelm wrote:
Just spent way too much time trying to find a bug when it turns out that I just had a full disk. So, food for thought for today: close() does not always return true.
close(FILE) or die "file error: $!";
In the disk-full case, open() succeeds (if there are still inodes available), but close fails because the buffers cannot be flushed.

You don't already check the return value of every system call?

Too tedious? Just use IO::All.

Which doesn't check most of it's system calls at all! There will probably be a "strict mode" added to it in the near future but for now it's not a very safe tool.



-dave

/*===================================================
VegGuide.Org                        www.BookIRead.com
Your guide to all that's veg.       My book blog
===================================================*/

Reply via email to