On Fri, 11 Sep 2015 19:50:29 +1200, I wrote: > Data loss is _not_ possible on closing an input file. See also <http://lwn.net/Articles/576478/>. The conclusion seems quite clear: apart from EBADF (indicating a program bug), close(2) should never return any errors.