perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: shared variable between PerlChildInitHandler and PerlResponseHandler
Date Thu, 19 Aug 2010 16:42:33 GMT
Mark Risher wrote:
...
> 
> [mr] I'm getting different addresses, which illustrates the problem
> 
> 2010/08/19 18:13:37 child_init &sticky = SCALAR(0x220ea748)
> 2010/08/19 18:13:37 child_init sticky (pre) = 0
> 2010/08/19 18:13:37 child_init sticky (post) = 1
> ...
> 2010/08/19 18:13:48 handler sticky (should be 1)= 0
> 2010/08/19 18:13:48 handler &sticky = SCALAR(0x23102e28)
>  
Have you tried :

package StartupLog;

use strict;

# the variable I'm testing
our $sticky = 0;

...
(I don't think that the "= 0" bit is ever going to be executed, but your are doing it 
anyway in your init handler.)



Mime
View raw message