Re: mp2: does not get alarm timeout

[prev] [thread] [next] [Date index for 2004/11/29]

From: Stas Bekman
Subject: Re: mp2: does not get alarm timeout
Date: 15:55 on 29 Nov 2004
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:stas@xxxxxx.xxx 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

mp2: does not get alarm timeout
Shreeguru KS 05:42 on 29 Nov 2004

Re: mp2: does not get alarm timeout
Stas Bekman 15:55 on 29 Nov 2004

Re: mp2: does not get alarm timeout
Stas Bekman 17:34 on 29 Nov 2004

Re: mp2: does not get alarm timeout
Stas Bekman 00:02 on 30 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52