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 solves the > problem partially. I used that fix. But this gives only the command name > instead of the whole of the command line.
Yes, that an unfortunate side effect of how perl_parse functions. The typical embedder's method of calling perl_parse() like this: perl_parse(my_perl, NULL, 3, {"", "-e","0" }, NULL); Causes a side effect of setting $0 to '-e', which in turn, on HPUX will call pstat(PSTAT_SETCMD, [...]); Causing the original problem. The _only_ solution I can currently think of is what I implemented. Reset $0 to argv[0]. And that's why you see only the name of the binary. I am not sure if this could be somehow fixed by resetting $0 not only to argv[0], but to a concatenation of argv[0..argc]. I am starting to think perl_parse() should be somewhat less magical... > #ps -eaf | grep httpd > > I normally get something like: > root 3634 1 0 20:31 ? 00:00:00 /app/apache/bin/httpd -k start > [...] > > But the fix gives only > > #ps -eaf | grep httpd > > root 3634 1 0 20:31 ? 00:00:00 /app/apache/bin/httpd > [...] > > without the arguments passed. -- Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5 http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5
signature.asc
Description: OpenPGP digital signature