On Fri, 19 Sep 2003, Stas Bekman wrote:
[ .. ]
> It's possible that logfile contains a seemingly valid
> apr_file_t, but if for some reason s->error_log is
> closed/reopened, leaving invalid pointer in logfile.
>
> remember that modperl_trace_level_set will be called at least twice
> (start+restart).
>
> But may be first try this temp patch:
>
> Index: src/modules/perl/modperl_log.c
> ===================================================================
> RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_log.c,v
> retrieving revision 1.8
> diff -u -r1.8 modperl_log.c
> --- src/modules/perl/modperl_log.c      3 Apr 2003 06:25:26 -0000       1.8
> +++ src/modules/perl/modperl_log.c      19 Sep 2003 17:47:58 -0000
> @@ -2,6 +2,7 @@
>   #include "apr_lib.h"
>   #include "modperl_trace.h"
>   #include "modperl_log.h"
> +#include "mod_perl.h"
>
>   #undef getenv /* from XSUB.h */
>
> @@ -28,6 +29,8 @@
>       if (!logfile) {
>           return;
>       }
> +
> +    logfile = modperl_global_get_server_rec()->error_log;
>
>       if (func) {
>           apr_file_printf(logfile, "%s: ", func);
>

That works for me - thanks, Stas!

-- 
best regards,
randy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to