What's the practical use of the error close() returns?
Elazar Leibovich
elazarl at gmail.com
Fri Jul 27 00:22:17 IDT 2012
On Fri, Jul 27, 2012 at 12:12 AM, Nadav Har'El <nyh at math.technion.ac.il>wrote:
>
> So it seems to me that checking the close() only *sometimes* lets you
> know of write errors which you'll otherwise miss. But since you'll
> anyway miss other write errors (those coming after the close()), it's
> not clear what exactly you're gaining.
>
It seems to me you're agreeing with me, right? You could just as well have
dup return error for recent write errors, it's just an arbitrary point
where one can report write error, with no significant gain over any other
points
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20120727/9aa88f2f/attachment.html>
More information about the Linux-il
mailing list