Received: (from majordom@localhost) by hyperreal.org (8.8.5/8.8.5) id NAA23149; Tue, 22 Jul 1997 13:15:10 -0700 (PDT) Received: from cs.bu.edu (root@CS.BU.EDU [128.197.13.2]) by hyperreal.org (8.8.5/8.8.5) with ESMTP id NAA23112 for ; Tue, 22 Jul 1997 13:15:03 -0700 (PDT) Received: from csa.bu.edu (stanleyg@CSA.BU.EDU [128.197.12.3]) by cs.bu.edu (8.8.5/8.8.5/(BU-S-01/27/97-fc1)) with ESMTP id QAA06314 for ; Tue, 22 Jul 1997 16:14:59 -0400 (EDT) Received: from localhost (stanleyg@localhost) by csa.bu.edu (8.8.5/8.8.5/(BU-C-01/27/97-fc1)) with SMTP id QAA02880 for ; Tue, 22 Jul 1997 16:14:54 -0400 (EDT) X-Authentication-Warning: csa.bu.edu: stanleyg owned process doing -bs Date: Tue, 22 Jul 1997 16:14:53 -0400 (EDT) From: Stanley Gambarin X-Sender: stanleyg@csa To: new-httpd@apache.org Subject: Re: code cleanup (2) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org On Tue, 22 Jul 1997, Dean Gaudet wrote: > > > - note_cleanups_for_[fd|socket] should not be exported. > > Nope, it's an exported function used in lots of places. It's needed to > implement some cleanups for resources not implemented in alloc.c. > These functions are called from popenf() series of functions. IMO, the only interface to the module developers should be a call to popenf() function, not direct interface with the cleanup routines. Also, it would be a good idea to create a popensocket() routine to complement pclosesocket() routine. > > - note_subprocesses() - also should not be exported. > > The same, if a module forks something because it needs functionality > spawn_child doesn't offer ... it needs a way to request a cleanup of it. > I suppose the module could just write its own cleanup routine. > If module can not use Apache provided API, it is up to the module to handle the resources, not apache. > > (d) Memory pool stuff > > - pstrcat() will return a character (with undefined value) if no > > arguments are specified. It should instead return NULL. > > Definately a bug. > Patch coming up by tomorrow unless someone beats me. Stanley.