On Wed, 2004-02-11 at 14:55 -0800, Stas Bekman wrote:
> Mariano Absatz wrote:
> [...]
> I was trying to restore argv[0] to 'httpd', but it looks like perl does some 
> internal magic in main(), limiting the set_magic to PL_origalen which for some 
> reason is very short. so I get back things like 'htt' instead of 'httpd'.
> 
> I can see the problem you have reported and still looking at possible solutions.

2 things worth looking at :

ap_server_argv0 will hold the name of httpd (I hope)

And in modperl_config.c :

char **modperl_config_srv_argv_init(modperl_config_srv_t *scfg, int
*argc)
{
    modperl_config_srv_argv_push("-e;0");

that's probably why PL_origalen is set to 4, so we might need to cheat
and pad it a bit so it's at least strlen(ap_server_argv0) long...

> _________________________
> Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org   http://ticketmaster.com
> 
> -- 
> Reporting bugs: http://perl.apache.org/bugs/
> Mail list info: http://perl.apache.org/maillist/modperl.html
> List etiquette: http://perl.apache.org/maillist/email-etiquette.html
> 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to