You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by ta...@over.ru on 2002/01/10 16:56:49 UTC

Alarms?

Hello!

I'm getting lots of errors in log:

[Thu Jan 10 18:54:33 2002] [notice] child pid 8532 exit signal Alarm clock
(14)
[Thu Jan 10 18:54:37 2002] [notice] child pid 8542 exit signal Alarm clock
(14)
[Thu Jan 10 18:54:42 2002] [notice] child pid 8537 exit signal Alarm clock
(14)

What causes that alarm? What does that alarm mean (I'm asking NOT about
signal itself, but about purpose)? How can I prevent that alarm from killing
running processes in the middle of processing?

I've set up $sig{ALRM} in handler.pl, but it does not get called.

Alex.

Re: Alarms?

Posted by Bill Moseley <mo...@hank.org>.
At 06:56 PM 01/10/02 +0300, tarkhil@over.ru wrote:
>Hello!
>
>I'm getting lots of errors in log:
>
>[Thu Jan 10 18:54:33 2002] [notice] child pid 8532 exit signal Alarm clock
>(14)

I hope I remember this correctly:

What's happening is you are setting a SIGALRM handler in perl, but perl is not correctly restoring Apache's handler when yours goes out of scope.

So then a non-mod_perl request times out there's not handler and the process is killed.

Check:
http://thingy.kcilink.com/modperlguide/debug/Debugging_Signal_Handlers_SIG_.html

http://thingy.kcilink.com/modperlguide/debug/Handling_Server_Timeout_Cases_an.html
-- 
Bill Moseley
mailto:moseley@hank.org