]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
o Use nanosleep(2) to sleep exact amount of time till the next second,
authorMaxim Sobolev <sobomax@FreeBSD.org>
Wed, 17 Oct 2012 00:44:34 +0000 (00:44 +0000)
committerMaxim Sobolev <sobomax@FreeBSD.org>
Wed, 17 Oct 2012 00:44:34 +0000 (00:44 +0000)
commit7bd028861b6ed5fae2ed4283df8a8ead17779d85
tree6c97cfe9d6e459b6309ee9f2ba62c6748c7f8816
parente9bbb44e0926008c3dfe9dc65b6b533ac97c3567
o Use nanosleep(2) to sleep exact amount of time till the next second,
not multiple of 1 second, which results in actual time to drift back
and forth every run within 1 second of the actual action has
been set for.

Suggested by:   Ian Lepore

o Schedule the first run in 1 second after starting up, not on the
boundary of the next minute, which results in the every_second jobs
not being run.
usr.sbin/cron/cron/cron.c