From owner-cvs-etc Mon Jun 2 11:16:11 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA03462 for cvs-etc-outgoing; Mon, 2 Jun 1997 11:16:11 -0700 (PDT) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA03453; Mon, 2 Jun 1997 11:16:07 -0700 (PDT) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id LAA29556; Mon, 2 Jun 1997 11:13:07 -0700 (PDT) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpd029549; Mon Jun 2 18:12:59 1997 Message-ID: <33930CFD.794BDF32@whistle.com> Date: Mon, 02 Jun 1997 11:12:13 -0700 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: Peter Wemm CC: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= , Adam David , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-etc@FreeBSD.ORG Subject: Re: cvs commit: src/etc rc References: <199706021803.CAA27545@spinner.dialix.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-cvs-etc@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Peter Wemm wrote: > Gated uses a flock() lock on it's pid file as the "lock", the existance of > the file does not imply that it's valid. So, things like gdc etc try and > do a conflicting lock request which should succeed if gated is not runni > ng, and should fail if it is there. But doing this for other daemons > requires code changes in each one. > I seem to remember old UUCP (syV) did an open in O_EXCL mode or something.. (you could always make a PIDfile that was a fifo..)