Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 74437 invoked from network); 18 Mar 2008 12:54:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Mar 2008 12:54:01 -0000 Received: (qmail 21126 invoked by uid 500); 18 Mar 2008 12:53:58 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 21100 invoked by uid 500); 18 Mar 2008 12:53:57 -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 21091 invoked by uid 99); 18 Mar 2008 12:53:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Mar 2008 05:53:57 -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 scarleton@gmail.com designates 64.233.166.182 as permitted sender) Received: from [64.233.166.182] (HELO py-out-1112.google.com) (64.233.166.182) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Mar 2008 12:53:20 +0000 Received: by py-out-1112.google.com with SMTP id d37so10659894pye.29 for ; Tue, 18 Mar 2008 05:53:30 -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:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=eo+rPZek2qqKIdeUwo/AEmWuJPGTp/jb9y9Lni0Cc6k=; b=MgEpEZf7KZaFn5nd0p7KdA248+KAFF0XQtsCgjQ9Qi4pTwKIuggStrk3Zk+ttI3tHcUYN2AzWbaLaONUT3joltj736jk5g3WDWUuywEu4ksn2EHcxZI05wUmKsi65W4HO3cXZyWp+mkEIrzfGdQJOaEKKvCJuhwvXgEA+N80oc8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=Wrz3KxiA1tI+zQNBSeL6QXG4tpc6xE/OC1zs7cdynyemhJ6B9qjoT9ksPiYhqu21+SLpdV4nwEtaYuIiHNBDgFRxVRNtee1odTVAxQNxOTXQF2vX1EBqMOY62Cn4YZEUmpLiIXoJdStxMOi769HCFfDpoksZTMXnsjD/SlGIG70= Received: by 10.35.47.10 with SMTP id z10mr1035025pyj.64.1205844810107; Tue, 18 Mar 2008 05:53:30 -0700 (PDT) Received: by 10.35.13.3 with HTTP; Tue, 18 Mar 2008 05:53:29 -0700 (PDT) Message-ID: <8d38ca0a0803180553l4bf94eb4k6901a88bd94b1513@mail.gmail.com> Date: Tue, 18 Mar 2008 08:53:29 -0400 From: "Sam Carleton" Sender: scarleton@gmail.com To: modules-dev@httpd.apache.org Subject: Re: long running background tasks In-Reply-To: <47DDA28B.8000902@s5h.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8d38ca0a0803112059m50c7538ag11d306ea55f8af79@mail.gmail.com> <47DDA28B.8000902@s5h.net> X-Google-Sender-Auth: df7af46b7e1e4f41 X-Virus-Checked: Checked by ClamAV on apache.org On Sun, Mar 16, 2008 at 6:43 PM, ed wrote: > What might be better for you is to add this to a queue, perhaps via > means of a unix socket (or IP socket) of another process, that does this > work. Actually today the program is only Windows and in time will be Windows, Linux and OSX (aka BSD). After posting I had a feeling that a daemon (Windows NT Service) would be the most likely approach. The only remaining question is: How best to let the daemon process know it is time to grab the task from Apache. In Windows there are named Event Object (http://msdn2.microsoft.com/en-us/library/ms682655(VS.85).aspx) so the Apache Server can set the event and the daemon know it needs to get the new task from Apache. Does the Linux/BSD world have something like named Events? Sam