Return-Path: X-Original-To: apmail-perl-dev-archive@www.apache.org Delivered-To: apmail-perl-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6B0ACF499 for ; Mon, 15 Apr 2013 08:30:40 +0000 (UTC) Received: (qmail 65576 invoked by uid 500); 15 Apr 2013 08:30:40 -0000 Delivered-To: apmail-perl-dev-archive@perl.apache.org Received: (qmail 65467 invoked by uid 500); 15 Apr 2013 08:30:40 -0000 Mailing-List: contact dev-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@perl.apache.org Received: (qmail 65396 invoked by uid 99); 15 Apr 2013 08:30:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Apr 2013 08:30:39 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of torsten.foertsch@gmx.net designates 212.227.15.15 as permitted sender) Received: from [212.227.15.15] (HELO mout.gmx.net) (212.227.15.15) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Apr 2013 08:30:32 +0000 Received: from mailout-de.gmx.net ([10.1.76.4]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0M9tl0-1UGcBv0gxs-00B4Wx for ; Mon, 15 Apr 2013 10:30:11 +0200 Received: (qmail invoked by alias); 15 Apr 2013 08:30:10 -0000 Received: from p4FD6C94B.dip.t-dialin.net (EHLO opi.home) [79.214.201.75] by mail.gmx.net (mp004) with SMTP; 15 Apr 2013 10:30:10 +0200 X-Authenticated: #1700068 X-Provags-ID: V01U2FsdGVkX198rj5KGUl8bgV67jAVuYPMbIhgNxoPk4STmqKL5S HlmCUGtZcrEDf7 Message-ID: <516BBA90.3020604@gmx.net> Date: Mon, 15 Apr 2013 10:30:08 +0200 From: =?UTF-8?B?VG9yc3RlbiBGw7ZydHNjaA==?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: =?UTF-8?B?SmFuIEthbHXFvmE=?= CC: Michiel Beijen , dev@perl.apache.org Subject: Re: mod_perl and $0 References: <516B9A38.2020603@redhat.com> In-Reply-To: <516B9A38.2020603@redhat.com> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org On 15/04/13 08:12, Jan Kaluža wrote: > A: is it conceivable that we fix mod_perl so that it actually returns > the correct value for $0? I probably missed the original mail. Sorry about that. But what would the "correct value of $0" be? For registry scripts I can imagine something similar to $SCRIPT_FILENAME in CGI scripts. But how about modperl handlers or request phases other than response or even phases outside the request cycle? And 2nd, should that value show up in top/ps? By the way it came never to my mind to check the value of $^X in mod_perl. Turns out it points to the httpd binary. I think that is worth to be fixed. But how? I think we can get at the path of the libperl.so. But how to deduce a perl binary from that? The only way I can see is to set a constant value at compile time. In fact, a perl binary doesn't even need to exist. Torsten --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org