perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Blackman <m...@blackmans.org>
Subject Re: reinitializing Perl's notion of $$ in mod_perl
Date Wed, 16 Apr 2008 10:01:15 GMT

On 16 Apr 2008, at 10:24, Mark Blackman wrote:
>
> On 16 Apr 2008, at 08:42, Philippe M. Chiasson wrote:
>>
>> Can you try this simple patch and see if it makes your troubles go  
>> away.
>
> It does indeed have the desired effect of getting $$ reset to the
> child pid by the time the PerlChildInitHandler handler is called.

I'm not quite sure what the positive result here suggests. Is that
patch appropriate as a long term fix? Should it be part of 2.0.4?

- Mark

>
> - Mark
>
>>
>> <Untested>
>> Index: src/modules/perl/mod_perl.c
>> ===================================================================
>> --- src/modules/perl/mod_perl.c (revision 643757)
>> +++ src/modules/perl/mod_perl.c (working copy)
>> @@ -896,7 +896,7 @@
>>                            NULL, NULL,  
>> MODPERL_HOOK_REALLY_REALLY_FIRST);
>>
>>      ap_hook_child_init(modperl_hook_child_init,
>> -                       NULL, NULL, APR_HOOK_FIRST);
>> +                       NULL, NULL,  
>> MODPERL_HOOK_REALLY_REALLY_FIRST);
>>
>>      modperl_register_handler_hooks();
>>  }
>> </Untested>
>>
>> -- 
>> Philippe M. Chiasson     GPG: F9BFE0C2480E7680 1AE53631CB32A107  
>> 88C3A5A5
>> http://gozer.ectoplasm.org/       m/gozer\@(apache|cpan|ectoplasm) 
>> \.org/
>>
>


Mime
View raw message