[mp2] Script replaces the process name with its own name

2006-01-20 Thread pradeep kumar
Hi, When I run a script say yyy.pl using ab then one of the child process name is changed to that of the script. #cat yyyp.pl #!/opt/perl/bin/perl   sleep 20;   print "test\n"; This is just after the script is started. # ps -ef | grep www   www  4028  4026  0 17:17:45 ? 0:00 /opt/hpw

Re: [mp2] Directive changes the command nam

2005-11-15 Thread pradeep kumar
not giving the "-k start" to mod_perl how did 5.8.0 give the whole command line.On 11/15/05, Philippe M. Chiasson <[EMAIL PROTECTED]> wrote: pradeep kumar wrote:> #diff src/modules/perl/modperl_config.c> src/modules/perl/modperl_config.c.org> 175c175> < modperl_config_sr

Re: [mp2] Directive changes the command nam

2005-11-13 Thread pradeep kumar
4  0 12:59:54 ? 0:00 /app/apache/bin/httpd -d /app/apache -D SSL This however is not giving me the "-k start". How can I get that. On 11/10/05, Philippe M. Chiasson <[EMAIL PROTECTED]> wrote: pradeep kumar wrote:> I tried to read the whole of  argv and push it in> mod

Re: [mp2] Directive changes the command nam

2005-11-08 Thread pradeep kumar
an I get the rest of the arguments.On 10/12/05, Philippe M. Chiasson <[EMAIL PROTECTED]> wrote: pradeep kumar wrote:> Hi,>> I got the fix from http://svn.apache.org/viewcvs.cgi?view=rev&rev=291193> < http://svn.apache.org/viewcvs.cgi?view=rev&rev=291193>. This solv

Re: [mp2] Directive changes the command nam

2005-10-11 Thread pradeep kumar
0:31 ? 00:00:00 /app/apache/bin/httpd nobody 3637 3634 0 20:31 ? 00:00:00 /app/apache/bin/httpdnobody 3638 3634 0 20:31 ? 00:00:00 /app/apache/bin/httpdnobody 3639 3634 0 20:31 ? 00:00:00 /app/apache/bin/httpd without the arguments passed.On 9/14/05, pradeep kumar <[EMAIL PR

Re: [mp2] $| doesn't work with mod_perl

2005-09-26 Thread pradeep kumar
SIGNED MESSAGE-Hash: SHA1Does $r->rflush(); help? Although it should do the same then seting $|to undef.TomTom Schindl wrote:> pradeep kumar wrote:>>>>Can you please elaborate on why apache filters can be an issue with the >>>autoflush problem that I noticed ?>>

Re: [mp2] $| doesn't work with mod_perl

2005-09-16 Thread pradeep kumar
STDOUT alone ? I am confused if this is a modperl problem or an Apache problem.On 9/12/05, pradeep kumar <[EMAIL PROTECTED] > wrote:Hi Tom,   I am using mp2.   Thanks and Regards, Pradeep  On 9/12/05, Tom Schindl <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE-Hash: SHA1Wha

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 pradeep kumar
  *argc = scfg->argv->nelts;     MP_TRACE_g_do(dump_argv(scfg));     return (char **)scfg->argv->elts;}   Does scfg have more than these 2 params? Is this what could be corrupting the ps output?   Thanks and Regards, Pradeep   On 9/13/05, pradeep kumar <[EMAIL PROTECTED]> wrote: By c

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] $| doesn't work with mod_perl

2005-09-12 Thread pradeep kumar
Hi Tom,   I am using mp2.   Thanks and Regards, Pradeep  On 9/12/05, Tom Schindl <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE-Hash: SHA1What version of mp are you using if you are running mp2 i think the apache-filter-system is the problem.Tompradeep kumar wrote:> Hi,>>  I have a pe

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,&

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 changin

$| doesn't work with mod_perl

2005-09-01 Thread pradeep kumar
Hi,  I have a perl script which uses $| to set autoflush on. Basically, it flushes after every print. This script is working fine from the command line when run using standalone perl interpreter. But when the same script is accessed via mod_perl/apache setup, mod_perl is not flushing after every p

Directive changes the command nam

2005-08-29 Thread pradeep kumar
Hi All, Has anyone come across the command name changing when the Perl directive is introduced in the configuration file. When, is used then ps -ef gives the proper command name namely httpd. When is used(This time with a blank line) then ps -ef does not give httpd as the command name,

Re: [mp2] Repeated kill -HUP to httpd dumps core

2004-12-06 Thread pradeep kumar
the PerlIO_stderr() function which is after the perl_alloc funtion in the stack. Thanks and Regards, Pradeep On Sat, 04 Dec 2004 10:17:26 -0500, Stas Bekman <[EMAIL PROTECTED]> wrote: > pradeep kumar wrote: > > > > Hi, > > But I have tried to reproduce the pro

Re: [mp2] Repeated kill -HUP to httpd dumps core

2004-12-03 Thread pradeep kumar
don't forget to Reply-All when following up on list's discussion! > > Thanks] > > > > pradeep kumar wrote: > > > >> Hi, By sending a "httpd -k graceful" multiple > >> times does not > >> reproduce the proble

Graceful restart of Apache multiple times

2004-12-01 Thread pradeep kumar
Hi, If Apache is gracefully rastarted multiplae times it dumps core. To reproduce this problem there is a script that can be run which sends a kill -HUP to httpd every 20 secs. The scpirt is #!/usr/bin/sh COUNT=1 while true do kill -HUP `cat "path_to_httpd.pid/httpd.pid"` date "+DATE: %m/%d/%y