Re: ChildInitHandler
On 30 Mar 2001, Nikolaus Rath wrote: > Hello! > > The following code doesn't work. I think that child_init_handler is > never called. But there are no errors in the error log. > sub child_init_handler($$) > { > my($this,$r) = @_; > $r->log_error("Session Manager initialized"); > return OK; > } > > sub child_exit_handler($$) > { > my($this,$r) = @_; > $r->log_error("Session Manager initialized"); ^^^ maybe you were expecting a different error message? > PerlChildInitHandler Apache::foo->child_init_handler() > PerlChildExitHandler Apache::foo->child_exit_handler() ^^ need to loose the parens, you should get an error for that. i tried your code, works fine, startup: [Thu Jun 14 10:08:42 2001] [error] Session Manager initialized kill -HUP: [Thu Jun 14 10:08:43 2001] [error] Session Manager stopped
ChildInitHandler
Hello! The following code doesn't work. I think that child_init_handler is never called. But there are no errors in the error log. What goes wrong here? -[/home/nikratio/cvs/tsession-perl/Apache/foo.pm] #!/usr/bin/perl -w package Apache::foo; use Apache::Cookie (); use Apache::Constants ':response'; use Apache::Util qw(:all); use Apache::Log; use strict; sub child_init_handler($$) { my($this,$r) = @_; $r->log_error("Session Manager initialized"); return OK; } sub child_exit_handler($$) { my($this,$r) = @_; $r->log_error("Session Manager initialized"); return OK; } 1; --[apache config]--- BEGIN { push @INC, "/home/nikratio/cvs/tsession-perl"; } PerlModule Apache::TSession PerlModule Apache::foo PerlChildInitHandler Apache::foo->child_init_handler() PerlChildExitHandler Apache::foo->child_exit_handler() ... --[error log]- [Fri Mar 30 15:23:30 2001] [notice] SIGUSR1 received. Doing graceful restart [Fri Mar 30 15:23:31 2001] [notice] FastCGI: wrapper mechanism enabled (wrapper: /usr/lib/apache/suexec) [Fri Mar 30 15:23:31 2001] [notice] FastCGI: process manager initialized (pid 19827) [Fri Mar 30 15:23:32 2001] [notice] Apache/1.3.14 (Unix) Debian/GNU mod_fastcgi/2.2.10 mod_ssl/2.7.1 OpenSSL/0.9.6 mod_perl/1.24_01 PHP/4.0.4pl1 configured -- resuming normal operations [Fri Mar 30 15:23:32 2001] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec) [Fri Mar 30 15:23:54 2001] [error] [client 127.0.1.1] client denied by server configuration: /home/nikratio/Projekte/net-control.org/public/.. EOF Thanks in advance, - Nikolaus -- "de.alt.comp.kdeDumm und trotzdem UNIX verwenden? KDE ist die Loesung." Sven Paulus in <67hu21$43r$[EMAIL PROTECTED]>