Mon, Oct 15, 2012 at 15:45:37, adrian wrote about "Re: svn commit: r241576 - 
in head/usr.sbin/cron: cron crontab lib": 

> Why not sleep for the amonut of time needed before the next event?

If you do this for all events listed currently in all crontabs, you
need event engine. Currently request to recheck crontabs each minute
masks the need to build event list.

Switching this to 1-second step breaks former success. But we still
can do something like

        if (per_second_requests_count > 0)
                sleep(1);
        else
                sleep_until_next_minute_margin();

as soon as there will be really few systems where @every_second is
used.


-netch-
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to