On Mar 27, 2008, at 9:18 AM, Nick Kew wrote:
On Wed, 26 Mar 2008 18:22:51 +0200
Graham Leggett <[EMAIL PROTECTED]> wrote:
Nick Kew wrote:
ap_hook_monitor?
A quick look found the hook, but no comments or other docs on how it
works. The only code in the tree using the hook is mod_example_hooks,
but it doesn't reveal any information either.
Is this hook documented anywhere?
It's intended precisely for periodic cron-like jobs. It's not
synchronised to the clock, but polled every 10 secs (IIRC -
and not guaranteed). For most jobs you'd want a timer or
counter to run the job at some multiple of 10 secs intervals.
Considerations:
* It runs in the parent process (root, single-threaded).
* Take care with the pool - it doesn't get cleaned up.
Also that since it just gets passed a pool, and nothing else,
its usage can be somewhat limiting as well :)