Re:POSIX close(2) is broken
by philh on Saturday December 17, 2011 @05:12AM
(#3363947)
It looks like if the other thread opened the same file you might get a false positive.
The only one of these likely to change is st_atime, but I don't think that's guaranteed to update. (I think different behaviours can be compiled into the linux kernel, including "only update atime if it equals ctime or mtime".)
[ Parent
| on HN ]
Re:POSIX close(2) is broken
by justincormack on Saturday December 17, 2011 @06:10AM
(#3364016)
Or mounting a filesystem with the noatime option, which is common.