]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC 238024:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 29 Aug 2012 19:17:29 +0000 (19:17 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 29 Aug 2012 19:17:29 +0000 (19:17 +0000)
commit59bb25cb886c0e2c3aaffb845cbaf3223c097cc8
treecafe4d92d69670e7872a272229ca702ac5f76c9d
parent12c34223b4608338ca0c6d7f0b60d355d2708fa6
MFC 238024:
Add a one second sleep before touching the spool directory.  If the touch
occurs in the same second as the earlier operations to create the temporary
file and the cron(8) daemon is rescans the spool directory during that
second, then the daemon may miss a cron edit and not properly update its
internal database.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239876 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/cron/crontab/crontab.c