Re: [mp2] Directive changes the command nam

2005-11-15 Thread pradeep kumar
I want to know how i can get the position of the "-k start" as it can be at any location. So assuming some position of it and hard coding it does not help. Also I tried using 5.8.0 perl without the fix. It somehow did not reproduce the problem. How is this happening. Since apache was not giving the

Re: [mp2] Directive changes the command nam

2005-11-14 Thread Philippe M. Chiasson
pradeep kumar wrote: > #diff src/modules/perl/modperl_config.c > src/modules/perl/modperl_config.c.org > 175c175 > < modperl_config_srv_t *modperl_config_srv_new(apr_pool_t *p, server_rec *s) > --- >> modperl_config_srv_t *modperl_config_srv_new(apr_pool_t *p) In the future, diff -u is much more p

Re: [mp2] Directive changes the command nam

2005-11-13 Thread pradeep kumar
#diff src/modules/perl/modperl_config.c src/modules/perl/modperl_config.c.org 175c175 < modperl_config_srv_t *modperl_config_srv_new(apr_pool_t *p, server_rec *s) --- > modperl_config_srv_t *modperl_config_srv_new(apr_pool_t *p) 177,178d176 < int i=0,len=0; < char *str1=NULL; 202,203c200,211 < /* m

Re: [mp2] Directive changes the command nam

2005-11-09 Thread Philippe M. Chiasson
pradeep kumar wrote: > I tried to read the whole of argv and push it in > modperl_config_srv_argv_push(). But what I can get only upto > "/app/apache/bin/httpd -d /app/apache" and not the whole of > "/app/apache/bin/httpd -d /app/apache -k start". I tried to print > argv[3] which just gave me nul

Re: [mp2] Directive changes the command nam

2005-11-08 Thread pradeep kumar
I tried to read the whole of  argv and push it in modperl_config_srv_argv_push(). But what I can get only upto "/app/apache/bin/httpd -d /app/apache" and not the whole of "/app/apache/bin/httpd  -d /app/apache -k start". I tried to print argv[3] which just gave me null. How can I get the rest of th

Re: [mp2] Directive changes the command nam

2005-10-11 Thread Philippe M. Chiasson
pradeep kumar wrote: > Hi, > > I got the fix from http://svn.apache.org/viewcvs.cgi?view=rev&rev=291193 > . This solves the > problem partially. I used that fix. But this gives only the command name > instead of the whole of the command line.

Re: [mp2] Directive changes the command nam

2005-10-11 Thread pradeep kumar
Hi, I got the fix from http://svn.apache.org/viewcvs.cgi?view=rev&rev=291193. This solves the problem partially. I used that fix. But this gives only the command name instead of the whole of the command line. #ps -eaf | grep httpd I normally get something like:root 3634 1 0 20:31 ? 00:

Re: [mp2] Directive changes the command nam

2005-09-14 Thread pradeep kumar
I am using HP-UX. There is no setproctitle on it as far as I know. Is there any other way of doing this on HP-UX.. Also I found a similar query which was reported some time back which was changing the command name dated Wed, 11 Feb 2004. This has been rectified though. But in my case the entire com

Re: [mp2] Directive changes the command nam

2005-09-13 Thread Philippe M. Chiasson
Philip M. Gollucci wrote: > Philippe M. Chiasson wrote: > >> Still unable to reproduce this on my end. > > This help any ? Nope, but I've nailed the source of the problem. Turns out that on some BSDs (like FreeBSD) changes to argv[0] do not affect the output of ps and such. Each process instead

Re: [mp2] Directive changes the command nam

2005-09-13 Thread pradeep kumar
I tried to print out the scfg in the modperl_config.c file. This prints 0 : httpd and 1 : -e;0. This is the only place where I see a "-e" being written. char **modperl_config_srv_argv_init(modperl_config_srv_t *scfg, int *argc){    modperl_config_srv_argv_push("-e;0");     *argc = scfg->argv->nelt

Re: [mp2] Directive changes the command nam

2005-09-13 Thread pradeep kumar
By commenting out the 2 lines save_scalar(gv); /* local $0 */ sv_setpv_mg(GvSV(gv), directive->filename);   in modperl_cmd.c I have been able to see the proper arguments in the ps output instead of the -e which was seen before. I wasn't sure of exactly what these 2 lines are doing. I however see t

Re: [mp2] Directive changes the command nam

2005-09-12 Thread Philip M. Gollucci
Philippe M. Chiasson wrote: Still unable to reproduce this on my end. This help any ? gdb httpd (wd: ~/dev/apps/httpd-2.3.0/prefork/bin) b modperl_cmd.c:559 [snip] bt full #0 modperl_cmd_perldo (parms=0xbfbfe9e0, mconfig=0x81056d0, arg=0x8133798 "package Apache2::ReadConfig::usr::home::p

Re: [mp2] Directive changes the command nam

2005-09-12 Thread Philip M. Gollucci
Philippe M. Chiasson wrote: Philip M. Gollucci wrote: pradeep kumar wrote: save_scalar(gv); /* local $0 */ Mainly for my sanity and the archives: $PROGRAM_NAME $0 Contains the name of the program being executed. On some (read: not all) operating systems ass

Re: [mp2] Directive changes the command nam

2005-09-12 Thread Philip M. Gollucci
Philippe M. Chiasson wrote: Still unable to reproduce this on my end. FreeBSD i386 7.0-current perl 5.8.7 w/out ithreads httpd svn apr svn not threaded mod_perl svn perl Makefile.PL \ MP_APXS=/usr/home/pgollucci/dev/apps/httpd-2.3.0/prefork/bin/apxs \ MP_MAINTAINER=1 \ MP_DEBUG=1 \ MP_TRACE

Re: [mp2] Directive changes the command nam

2005-09-12 Thread Philippe M. Chiasson
Philip M. Gollucci wrote: > pradeep kumar wrote: > >> Hi Philppe, >> >> I did try using mod_perl 2.0.1 and got the same "-e" in the ps output >> instead of >> "/PATH_TO_HTTPD -d /PATH_OF_APACHE -k start". > > I'll confirm this in mp2 svn. Still unable to reproduce this on my end. > Here's the

Re: [mp2] Directive changes the command nam

2005-09-12 Thread Philip M. Gollucci
pradeep kumar wrote: Hi Philppe, I did try using mod_perl 2.0.1 and got the same "-e" in the ps output instead of "/PATH_TO_HTTPD -d /PATH_OF_APACHE -k start". I'll confirm this in mp2 svn. Here's the relevenant section in modperl_cmd.c: { SV *code = newSVpv(arg, 0); GV

Re: [mp2] Directive changes the command nam

2005-09-12 Thread pradeep kumar
Hi Philppe,   I did try using mod_perl 2.0.1 and got the same "-e" in the ps output instead of "/PATH_TO_HTTPD -d /PATH_OF_APACHE -k start".   Thanks and Regards, Pradeep  On 9/9/05, Philippe M. Chiasson <[EMAIL PROTECTED]> wrote: pradeep kumar wrote:> Hi Philppe,>> I am using mp2. The version of

Re: [mp2] Directive changes the command nam

2005-09-08 Thread Philippe M. Chiasson
pradeep kumar wrote: > Hi Philppe, > > I am using mp2. The version of mod_perl is 1.99_16. What is the > equivalent of this patch in mp2. This should not be a problem in mod_perl 2.0, can you try and upgrade to mod_perl-2.0.1 and see if the problem still persists ? If so, try and use the mp2bug t

Re: [mp2] Directive changes the command nam

2005-09-08 Thread pradeep kumar
Hi Philppe,   I am using mp2. The version of mod_perl is 1.99_16. What is the equivalent of this patch in mp2.   Thanks and Regards, Pradeep  On 8/30/05, Philippe M. Chiasson <[EMAIL PROTECTED]> wrote: pradeep kumar wrote:> Hi All,>> Has anyone come across the command name changing when the Perl >