Re:POSIX close(2) is broken
by FrankBooth on Saturday December 17, 2011 @05:07AM
(#3363942)
What if the other thread opens the same file?
[ Parent
| on HN ]
True, hadn't thought of that. (Seems obvious in retrospect, of course.)
It's almost tempting to try to differentiate that with st_atime, but I don't think there's any way that could be reliable (especially given noatime mounts and such).