Received: (from majordom@localhost) by hyperreal.org (8.8.5/8.8.5) id CAA23032; Thu, 7 Aug 1997 02:54:42 -0700 (PDT) Received: from twinlark.arctic.org (twinlark.arctic.org [204.62.130.91]) by hyperreal.org (8.8.5/8.8.5) with SMTP id CAA23009 for ; Thu, 7 Aug 1997 02:54:38 -0700 (PDT) Received: (qmail 12869 invoked by uid 500); 7 Aug 1997 09:51:31 -0000 Date: Thu, 7 Aug 1997 02:51:31 -0700 (PDT) From: Dean Gaudet To: new-httpd@apache.org Subject: Re: [PATCH] SysV semaphores 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 To use sysv semaphores it'd be nice if we don't require the user to do anything special to their config files ... and we need to somehow choose a number which is roughly constant across multiple invocations of httpd on the "same" config file. (And different for httpds running on different config files.) I say "same" because some folks regenerate their config file when adding vhosts, so the inode isn't a good thing to use. The pid file location should be unique, but nothing breaks terribly if it isn't (well it's hard to stop/restart). The server root doesn't have to be unique. It's hard to use Listen (because it could be restarted with extra Listen directives). BindAddress would work well, but isn't always there. Port doesn't help much on its own. ... I'm running out of ideas... Whatever we do, we'd need to add accept_mutex_fini() so that we can properly delete the semaphore on clean exits. There's no need to deal with it in children, because IPC_RMID wakes up any blocked processes. We might just be able to get away with IPC_PRIVATE. Bleh. Dean