On Tuesday 30 December 2003 22:35, Gary Denslow wrote: > anyway, the signal handler is working on solaris. my problem is that on my > linux setup the signal handler is being completely ignored. i send a USR2 > to the root httpd process and the signal handler is not executed at all...
I think your problem is perl's safe signal handling introduced in 5.8.0 or so. I have tried <PERL> $SIG{USR2}=sub { warn "USR2: @_: $$"; }; </PERL> in my httpd.conf with 5.8.0 and 5.005_3 on linux. With 5.8.0 I get the message from the signal handler only at server shutdown. With 5.005_3 it appears immediately. With 5.8.0 signals are delivered only between opcodes. Since apache's main loop looks to perl like a very long running opcode the signal is delivered only at shutdown. Maybe you can achieve your goal using POSIX::sigaction. I haven't tried it. Torsten -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html