svn commit: r231383 - in head: lib/libutil usr.sbin/vipw

John Baldwin jhb at freebsd.org
Mon Feb 13 16:26:41 UTC 2012


On Friday, February 10, 2012 8:40:32 am Ed Schouten wrote:
> Author: ed
> Date: Fri Feb 10 13:40:32 2012
> New Revision: 231383
> URL: http://svn.freebsd.org/changeset/base/231383
> 
> Log:
>   Detect file modification properly by using tv_nsec.
>   
>   POSIX 2008 standardizes st_mtim, meaning we can simply use nanosecond
>   precision to detect file modification.
>   
>   MFC after:	2 weeks

Eh, the BUG is still worth mentioning.  By default FreeBSD only uses second 
granularity for VFS timestamps, so two updates within a single second is still 
racey.  You can keep the code change, but I would revert the manual page 
change to put the BUG back as your change didn't remove it.

-- 
John Baldwin


More information about the svn-src-head mailing list