On 1/24/07, Joel Gwynn <[EMAIL PROTECTED]> wrote:
On 1/24/07, Robert Landrum <[EMAIL PROTECTED]> wrote:
> Joel Gwynn wrote:
> > Interesting.  I just might be doing that:
> > $config_file = $self->param('r')->dir_config('CONFIG_FILE');
> >
> > In my <Directory> section, I have this:
> >
> > PerlSetVar CONFIG_FILE /projects/funnyr_dev/private/config.ini
> >
> > And of course I'm not using flock on that file.  Hmmm.
>
> Try changing that up...
>
> my $r = $self->param('r');
> if(defined $r) {
>    $config_file = $r->dir_config('CONFIG_FILE');
> }
> else {
>    # handle no $r
> }
>
> Give that a shot and see if it solves the problem.

Thanks, but I'm already doing that, well actually I'm doing this:

if($self->param('r')){
 $config_file = $r->dir_config('CONFIG_FILE');
}

which should be the same, no?

OK.  I replaced that line with a hard-coded file path, and now it's
looking much better.  So I guess it's something about the Request
object.

Reply via email to