svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib

Eitan Adler eadler at freebsd.org
Tue Oct 16 00:24:31 UTC 2012


On 15 October 2012 19:26, Adrian Chadd <adrian at freebsd.org> wrote:
> On 15 October 2012 16:10, Eitan Adler <eadler at freebsd.org> wrote:
>> On 15 October 2012 18:45, Adrian Chadd <adrian at freebsd.org> wrote:
>>> Why not sleep for the amonut of time needed before the next event?
>>
>> If the crontab changes in the meantime. If the next event is in a week,
>> but you modify the crontab, you don't want to sleep until next event.
>
> Right. So "check the crontab file" event is also an event with a
> timestamp in the future.
>
> Maybe crontab should be using a command via a socket to reload, rather
> than stat'ing files..

"Why we stat the file every quantum instead of using kqueue is
a different question."





-- 
Eitan Adler
Source & Ports committer
X11, Bugmeister, Ports Security teams


More information about the svn-src-all mailing list