perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject RE: Embperl::Execute under 2.0
Date Tue, 26 Jul 2005 15:08:40 GMT
Hi Neil,

> 
> Gerald Richter wrote:
> > This should work out of the box under mod_perl 2, for mod_perl 1 
> > please add a
> > 
> > Embperl::Init () ;
> > 
> > before the first call to Execute in your startup script.
> > 
> > The init call is done by Embperl automaticly, but under mod_perl 1 
> > it's done a little later, so you have to do it manually, in 
> case you 
> > want to execute something during startup.
> > 
> > Let me know if this works for you
> > 
> > Gerald
> > 
> 
> Hi Gerald,
> 
> I tried adding the Embperl::Init() to the startup script, 
> after the 'use' and before the preload routine is called. Now 
> it gives a segmentation fault:
> 

I have spent some more time debugging this and it is a problem with module
initialisiation order under Apache 1.3. (it worked for me before, because I
used the -X switch for testing, which does not make sense in real live)

It would be a lot of work to get it working with Apache 1.3, while it
already works with Apache 2.0.

So from my point of view, if you are currently in the process of changeing
software, why not move to Apache 2 as well? You can use the Apache::compat
module and most of your mod_perl sepcific code should continue to work.

Apache 2 offers a lot of benefits over 1.3, so I really use it everywhere
right now.

Gerald



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message