Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 4371 invoked from network); 5 Sep 2008 09:20:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Sep 2008 09:20:43 -0000 Received: (qmail 54848 invoked by uid 500); 5 Sep 2008 09:20:29 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 54811 invoked by uid 500); 5 Sep 2008 09:20:29 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 54776 invoked by uid 99); 5 Sep 2008 09:20:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Sep 2008 02:20:28 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of andrejvanderzee@gmail.com designates 209.85.142.189 as permitted sender) Received: from [209.85.142.189] (HELO ti-out-0910.google.com) (209.85.142.189) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Sep 2008 09:19:31 +0000 Received: by ti-out-0910.google.com with SMTP id a20so223656tia.0 for ; Fri, 05 Sep 2008 02:19:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=nVUU3efF2R0oEl6MGvt67/jnIgxjTCfRmITSX5fpht4=; b=K66OOlI78V3l7/NdrF4tlmktqg4yx6ecHU1YojVwBURduNAimVff5WIEV+JlZFFsUg poPWSkSKWPF32o48U4/KIkiVGQpf9YtGWkXtIk7tLbqxxgBuuyClfiRmT0fZrzAqCeyz WEbKfQO2YqlWCNQscDRsepLE6zYGOZCiZh/jI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=oZWUNuQq379D5m3OZQbfQ4H7TBcpv52JQAMlU7XRXC5GvuKGt7PBHhNbKme1B7RnMy mJqA9bnuPxJEVDo0nuVuH6uz0dA0r0OIvSawCwgtSEGd52uOijTrBmxmF92uDZ3qxXoY G63ozmd0jclvC61eBmzt5YQa9vJN3uEP0WDjc= Received: by 10.110.37.17 with SMTP id k17mr14655416tik.13.1220606384858; Fri, 05 Sep 2008 02:19:44 -0700 (PDT) Received: by 10.110.10.13 with HTTP; Fri, 5 Sep 2008 02:19:44 -0700 (PDT) Message-ID: <6456355d0809050219n180a804exa7b8fa36f499201d@mail.gmail.com> Date: Fri, 5 Sep 2008 18:19:44 +0900 From: "Andrej van der Zee" To: modules-dev@httpd.apache.org Subject: Re: Apache modification questions In-Reply-To: <20170a030809050204l684a9c90u44aa23c69bc86253@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6456355d0809042011q1b1e652cv6fc6fd927ade6bb7@mail.gmail.com> <20170a030809050204l684a9c90u44aa23c69bc86253@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, Thanks for your comments. > > child_init is not the appropriate hook for your purpose. Use > ap_hook_fixups for getting the ID and ap_hook_log_transaction for > logging. In ap_hook_fixups, is it possible to get the thread/process ID of the CGI application serving the request? Moreover, is this thread/process already created? Or maybe the hook function is executed in the same thread/process as the CGI application? > > Every module has a "register_hooks" function. There, you call the two > ap_hook functions above in order to hook your callbacks to the fixups > and log_transaction events. Next you implement the two callbacks and > that's it. > That's clear. Cheers, Andrej -- Andrej van der Zee 2-40-19 Koenji-minami Suginami-ku, Tokyo 166-0003 JAPAN Mobile: 0031-(0)80-65251092 Phone/Fax: 0031-(0)3-3318-3155