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; };
BTW, under prefork mpm both techniques work. The problem appears to be under worker mpm (and may be other mpms too). In the future don't forget to present your environment better (the best using the guidelines at
http://perl.apache.org/guides/).
-- __________________________________________________________________ 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