httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rasmus Lerdorf <ras...@apache.org>
Subject RE: Apache 2.0 Numbers
Date Mon, 24 Jun 2002 15:19:24 GMT
> > What is the correct way to fail in a filter post_config?  Do I return
> -1
> > from it if my filter finds a fatal error?  I can't use ap_log_rerror()
> at
> > this point, right?  How would I log the reason for the failure?
>
> I'm confused by the question, but I'll try to answer.  If you mean the
> post_config phase, then you can use ap_log_error or ap_log_perror.  If
> you want to stop the server from starting, just return DECLINED.

Right, I found ap_log_error.  It was the return value I was looking for.
None of the example filter modules had a fatal error check at the config
phase.  So returning a -1 is the correct way to stop the server from
starting.  Thanks.

-Rasmus


Mime
View raw message