On 1/11/06, Andrew Flegg <[EMAIL PROTECTED]> wrote: > On 11/01/06, Kimmo Hämäläinen <[EMAIL PROTECTED]> wrote: > > > > I assume it will sleep most of the time and poll once in a minute > > (according to man page). > > Polling once a minute is much too often, though! The daemon (even if > it's crond) should get told, possibly over DBUS, when a scheduled > event is added. It then recalculates its sleep time, and goes back to > sleep until the next currently known event is due. > > Looking at the source to atd(8), this is what it seems to do.
Cron must do something like this, it's not dumb, it's a program really mature and should have this. My only concern is that this adds latency to the process (cron -> shell ->program), but we need to gather use cases to see if it's acceptable or not. My guess is that it's acceptable. But as already told, we should have an easy-to-use API to avoid writing to crontab directly. -- Gustavo Sverzut Barbieri -------------------------------------- Computer Engineer 2001 - UNICAMP Mobile: +55 (19) 9165 8010 Phone: +1 (347) 624 6296; [EMAIL PROTECTED] Jabber: [EMAIL PROTECTED] ICQ#: 17249123 MSN: [EMAIL PROTECTED] GPG: 0xB640E1A2 @ wwwkeys.pgp.net _______________________________________________ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers