Re: $0 problem with mp1

[prev] [thread] [next] [Date index for 2004/12/02]

From: Stas Bekman
Subject: Re: $0 problem with mp1
Date: 00:45 on 02 Dec 2004
Pratik wrote:
> Hi !
> 
> I am using Apache/1.3.33 and Mod-Perl 1.29. I have following httpd.conf file.
> 
> ====
> ServerRoot "/home/pvnaik/lab/mp1"
> Timeout 300
> KeepAlive On
> MaxKeepAliveRequests 100
> KeepAliveTimeout 15
> DocumentRoot "/home/pvnaik/lab/mp1/htdocs"
> ErrorLog logs/error_log
> Port 50505
> 
> <Perl>
> *0 = "MyApache::Parent";
> </Perl>
> ====
> 
> Now if I do 'ps', I don't see the new name of the process. 

I've never used that under mp1, did it actually ever work?

I can see some experimental code which is enabled when compiled with 
-DPERL_TIE_SCRIPTNAME. but I won't have the time to look at it, until 
after modperl2 is released.

Feel free to look through the code and post a patch if you know how to fix 
that. If not please ping about this issue again some time later, post 2.0 
release.

BTW, did you look in the archives if anybody has asked a similar question 
before?

> Also, I get segmentation fault if I try to use $0 instead of *0.

That's known to segfault. I didn't have a chance to investigate why.


        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Report problems: 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

$0 problem with mp1
Pratik 09:09 on 27 Nov 2004

Re: $0 problem with mp1
Stas Bekman 00:45 on 02 Dec 2004

Re: $0 problem with mp1
Pratik 06:35 on 02 Dec 2004

Re: $0 problem with mp1
Stas Bekman 15:25 on 02 Dec 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52