On Mon, 2013-04-29 at 11:54 +0200, Pavel Březina wrote:
Ah, yes. If the request returns ERR_STOP_PERIODIC_TASK, the task will
completely destroyed, otherwise it will reschedule: when EOK, it will
fire the request in last-execution-time + period, otherwise now +
Wouldn't it be simpler to simply stop on any error, and reschedule only
when EOK is returned ?
This way the task can bubble up the error all the wya w/o having to mask
it to a ERR_STOP_PERIODIC_TASK error at the very end.
This way also the periodic task handler can report exactly what error
cause a periodic task to fail and report it at a high level.
Freeing the task memory context instead would free the task w/o
reporting any error.
Simo Sorce * Red Hat, Inc * New York