Date: Fri, 5 Jul 2013 22:22:48 +0100
   From: David Laight <da...@l8s.co.uk>

   Not according to 'man 2 close'.
   That only allows EBADF and EINTR (presumably for blocking close on
   character devices, sockets and? pipes).

   Most programs wouldn't want an fd left open just because a file was NFS
   and a write generated by close failed.

No matter what close(2) returns, it guarantees that if the specified
file descriptor was open, then it is closed.  EBADF means that file
descriptor wasn't open to begin with.  Any other error is just a hint
about what else is going on in the world.

Reply via email to