[BusyBox] Re: ifconfig: Clean up. [PATCH]

Rob Landley rob at landley.net
Thu Jul 28 17:56:32 UTC 2005


On Thursday 28 July 2005 12:04, Bernd Petrovitsch wrote:
> I'm in now way advocating or even proposing that close(2) shouldn't
> close the fd (even if it reports an error).
> But IMHO a lot of people will think that way.

Basically, close doesn't fail often enough for anybody to have developed much 
interest in this issue.  And if close _does_ fail, it's not clear what you'd 
want to do about it.

The only special case I can think of is "mv", where you'd want to avoid 
deleting the original file if the destination file isn't right.  I can also 
see things like mailservers not wanting to tell the sending mailserver they 
got the message until they're sure it's on disk (although with the spam 
problem as bad as it is and spam filters getting heuristic with the potential 
for false positives, email can no longer really be considered a reliable 
medium no matter how much effort you go to...) but these days they use 
fsync() anyway.

>  Bernd

Rob



More information about the busybox mailing list