Shreeguru KS wrote:
Hi,

I'm using mod_perl 2.0 with apache server 2.0.52 and perl version
5.8.0. The problem is that with mod_perl alarm() doesn't get timeout
through apache mod_perl. It works fine on the command with perl 5.8.0.
It also works with cgi.

I wrote a test and indeed it doesn't work. Nor with:

        local $ENV{PERL_SIGNALS} = "unsafe";

        eval {
            local $SIG{ALRM} = sub { die "alarm" };
            alarm 2;
            run_for_5_sec();
            alarm 0;
        };

I'll try to figure out what's going wrong here. Most likely Apache signal trapping gets on the way.

It works under cgi, since it's a separate process, not controlled by Apache.

--
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to