On Sun, Jul 17, 2011 at 12:38:43PM +0200, Christian Walde wrote: > On Sun, 17 Jul 2011 11:39:48 +0200, Matt S Trout <mst@shadowcat.co.uk> wrote: > >> I've never, ever actually seen the 'or die' on one of my close() statements >> fire, so I don't have much ammunition for arguing it. > > I've seen it. I see it on a regular basis. If a print() call fails, e.g. because the disk has filled up, close() will ultimately fail as well. If you aren't going to check the return value of every print(), you need to check the return value of close(). Marvin HumphreyThread Previous | Thread Next