On Tue, Jun 12, 2001 at 06:47:14AM -0700, [EMAIL PROTECTED] wrote:
>
> [... type issue answered by Ian (and the posted patch :-) ...]
>
> > > 3)  Why is this a RUN_FIRST instead of a RUN_ALL?
> >
> > If the mgmt function runs the hooks and askes for "apache.dav.*", then
> > mod_dav can satisfy the hook and terminate the scan.
> 
> How is this going to help mod_status?  If it asks for "*", then it will
> not get everything,

You return DECLINED if you didn't completely satisfy the request for info.

{
    int just_me;
    
    just_me = strncmp(which, "apache.dav.", 11) == 0;
    if (!just_me && strcmp(which, "*") != 0)
        return DECLINED;
    
    /* add items to the hash */
    
    return just_me ? OK : DECLINED;
}


But a RUN_ALL is also fine. I don't believe this hook needs to execute
super-speedily.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

Reply via email to