Received: by taz.hyperreal.com (8.8.3/V2.0) id CAA13555; Fri, 10 Jan 1997 02:26:16 -0800 (PST) Received: from eat.organic.com by taz.hyperreal.com (8.8.3/V2.0) with ESMTP id CAA13550; Fri, 10 Jan 1997 02:26:12 -0800 (PST) Received: from localhost (brian@localhost) by eat.organic.com (8.8.3/8.6.12) with SMTP id CAA19622; Fri, 10 Jan 1997 02:27:25 -0800 (PST) Date: Fri, 10 Jan 1997 02:27:23 -0800 (PST) From: Brian Behlendorf To: new-httpd@hyperreal.com cc: ben@algroup.co.uk Subject: Re: Patch to make 1.2b3 compatible with Tenon's Machten 4.0.3 (fwd) In-Reply-To: <199701081533.JAA09005@sierra.zyzzyva.com> 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@hyperreal.com On Wed, 8 Jan 1997, Randy Terbush wrote: > > > > *** DIST/http_main.c Thu Dec 26 13:14:02 1996 > > > > --- http_main.c Thu Dec 26 13:15:31 1996 > > > > *************** > > > > *** 182,188 **** > > > > --- 182,192 ---- > > > > { > > > > char lock_fname[30]; > > > > > > > > + #ifdef __MACHTEN__ > > > > + strcpy(lock_fname, "/var/tmp/htlock.XXXXXX"); > > > > + #else > > > > strcpy(lock_fname, "/usr/tmp/htlock.XXXXXX"); > > > > + #endif > > > > > > > > if (mktemp(lock_fname) == NULL || lock_fname[0] == '\0') > > > > { > > > > > > > > > > > > > > There's gotta be a more generic solution than this, no? > > > > Yeah. Use /tmp. > > > > Cheers, > > > > Ben. > > We've been through that problem though.... How about the same > place as the PID file? The PID file is created by the server when it's still root, ja? Whereas the serialized accept is done between competing children, ja? If so the children couldn't create a lock file in the same place where the PID file is created, if we follow our own advice about making the logfile directory (where the PID file is created by default, and should probably stay) 700. Brian --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-- brian@organic.com www.apache.org hyperreal.com http://www.organic.com/JOBS