You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Doug MacEachern <do...@covalent.net> on 2001/06/15 00:43:52 UTC

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