httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Holsman <>
Subject Re: any reason why post_config hook doesn't let modules fail init?
Date Tue, 20 Nov 2001 19:29:34 GMT
On Tue, 2001-11-20 at 11:25, Jeff Trawick wrote:
> We have several modules which "exit(1)" from their post_config
> hook if something bad happens that the administrator must correct 
> (e.g., mod_unique_id, mod_rewrite).  But when they "exit(1)" cleanups
> are't run. If post_config was RUN_ALL instead of RUN_VOID then such
> modules could just return a failure code from their post_config and
> main() could do the right thing (call destroy_and_exit_process()).
> Any reason not to do this?
+1 on changing it to a RUN_ALL.
my modules suffer the same fate.
the other problem with exit(1)'s are that it sometimes leaves processes
> -- 
> Jeff Trawick | | PGP public key at web site:
>              Born in Roswell... married an alien...
Ian Holsman
Performance Measurement & Analysis
CNET Networks   -   (415) 344-2608

View raw message