perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitri Tikhonov <dmi...@netilla.com>
Subject Re: [mp2] Apache::Reload and touch files.
Date Wed, 07 May 2003 23:02:29 GMT

On Thu, 8 May 2003, Stas Bekman wrote:

> Dmitri Tikhonov wrote:
> > In both 1.99_08 (the version I'm using) and in current version of
> > mod_perl, Apache::Reload contains these lines:
> >
> >         $TouchModules = <$sym>;
> >         chomp $TouchModules;
> >
> > The documentation on perl.apache.org states that 'touch /tmp/somefile'
> > will reload modules on next request.  However, if the file is touched
> > and is empty, the next request produces an internal server error and
> > this message in the log file:
> >
> > [Wed May 07 13:06:42 2003] [error] [client 192.168.1.105] Use of
> > uninitialized value in scalar chomp at
> > /usr/lib/perl5/site_perl/5.6.1/i386-linux/Apache/Reload.pm line 66.
> >
> > 'echo " " > /tmp/somefile' works fine.
> >
> > The question is, is this a bug in documentation or in implementation?
> >
> >   - Dmitri.
> >
> > P.S.  Linux 2.4.21pre5, Perl 5.6.1.
>
> Are you sure that this is Apache::Reload distributed from mp2? What's its
> version? the one comes with mp2 has its version 0.08

Yes.

> In any case, it's a pure perl code, so you should be able to easily debug it
> and send a fixing patch if it's really the problem.

This does the trick:

    $TouchModules = (<$sym> || '');

  - Dmitri.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message