Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 56167 invoked from network); 18 Nov 2003 23:37:24 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 18 Nov 2003 23:37:24 -0000 Received: (qmail 27374 invoked by uid 500); 18 Nov 2003 23:36:54 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 27337 invoked by uid 500); 18 Nov 2003 23:36:54 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 27269 invoked from network); 18 Nov 2003 23:36:54 -0000 Received: from unknown (HELO netspace.org) (64.61.61.206) by daedalus.apache.org with SMTP; 18 Nov 2003 23:36:53 -0000 Received: from netspace.org (localhost.localdomain [127.0.0.1]) by netspace.org (8.12.10/8.12.10) with ESMTP id hAINaXqQ030774 for ; Tue, 18 Nov 2003 18:36:33 -0500 Received: (from gs@localhost) by netspace.org (8.12.10/8.12.10/Submit) id hAINaX0e030772 for dev@httpd.apache.org; Tue, 18 Nov 2003 18:36:33 -0500 Date: Tue, 18 Nov 2003 18:36:33 -0500 From: Glenn To: dev@httpd.apache.org Subject: Re: Sockets Message-ID: <20031118233633.GA26570@netspace.org> References: <000001c3ae1d$e7b99650$71f1b7d4@zeus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000001c3ae1d$e7b99650$71f1b7d4@zeus> User-Agent: Mutt/1.4.1i X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Tue, Nov 18, 2003 at 10:49:55PM +0100, David Herrero wrote: > I have to do a module that open a socket and modify a global > variable, while the web server is runing. Is there a module that opens a > socket and creates a child process ? In this way i see how do it, > because i don't have any idea. You might try looking at mod_cgi and mod_cgid. They create pipes and fork a child process to run CGI. (Creating sockets instead of pipes requires only minor change) Are you developing on Apache 1.3 or Apache 2.x? Depending on what you're trying to do, you might have your module make a cgi-script subrequest and then let mod_cgi take care of creating the child process for you. Cheers, Glenn