On Thu, 13 Jan 2000, Bill Moseley wrote:
> At 08:50 AM 1/13/00 +0200, you wrote:
> >> Does anyone have experience using an alarm() call under Apache::Registry?
> >
> >http://perl.apache.org/guide/debug.html#Handling_the_server_timeout_case
> >
> >> Should I set alarm(0) as my script "exits" or is it ok to leave it set?
> >> I'm using it to cap runaway scripts.
>
> Just so I understand the Guide - You can safely localize $SIG{ALRM} in 1.21
> and Perl 5.005_03, but not other signal handlers?
are you having trouble with other signals? mod_perl is only trying to
deal with those that cause conflict with Apache's. if you've found one,
add it to the list in perl_config.c:
static char *sigsave[] = { "ALRM", NULL };
does it help?
> In:
> http://perl.apache.org/guide/debug.html#Debugging_Signal_Handlers_SIG_
>
> The Sys::Signal example is a bit confusing to me, as it uses $SIG{ALRM} in
> the example. Yet that seems like the one signal where you don't need to
> use Sys::Signal. Was the example of Sys::Signal written before the
> $SIG{ALRM} fix?
yes.