Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 69295 invoked from network); 11 Oct 2006 16:36:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Oct 2006 16:36:47 -0000 Received: (qmail 42796 invoked by uid 500); 11 Oct 2006 16:36:47 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 42652 invoked by uid 500); 11 Oct 2006 16:36:46 -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 42638 invoked by uid 99); 11 Oct 2006 16:36:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Oct 2006 09:36:46 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mcqueenorama@gmail.com designates 66.249.92.175 as permitted sender) Received: from [66.249.92.175] (HELO ug-out-1314.google.com) (66.249.92.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Oct 2006 09:36:45 -0700 Received: by ug-out-1314.google.com with SMTP id z36so144688uge for ; Wed, 11 Oct 2006 09:36:24 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Hx3MJpvUbMudUY4g3+eD81kRu8Mzk7tzui6j1iHnBGjwSGnclTw1XEEXPPAqX81EWbXW7+605TBwyQqEb4TROzdnw3FVediHBRR8gjN+RFNC6jOe5xF2no7uPoRAqUbGMICpH+kwyt5+Si8nt+Zm4ygEuvu53bw+57/Xfcgs7EM= Received: by 10.67.117.18 with SMTP id u18mr1290446ugm; Wed, 11 Oct 2006 09:36:24 -0700 (PDT) Received: by 10.67.99.3 with HTTP; Wed, 11 Oct 2006 09:36:23 -0700 (PDT) Message-ID: <5b3fa8f0610110936r11636987l61affe8ed2fd664f@mail.gmail.com> Date: Wed, 11 Oct 2006 09:36:23 -0700 From: "Brian McQueen" To: modules-dev@httpd.apache.org Subject: pre-fork hook MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Related to the other thread. I don't see a hook that can be used to get something going before the fork. How can I get the server to do something for me before the fork? I think I can do what I need from the children by getting the parent_process and using its pool, but I'd like to do it only once, and have it stored where the children can get at it, like having a ptr in each server config to the shm location. BTW its already using shm and semaphores, but its outside of Apache. I'd like to move it to within Apache to eliminate a clumsy external dependency. I'd like the shm init stuff to occur once, when the server starts, and before any children are forked. Brian McQueen