From owner-cvs-etc Tue Jun 3 14:24:24 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id OAA23694 for cvs-etc-outgoing; Tue, 3 Jun 1997 14:24:24 -0700 (PDT) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA23487; Tue, 3 Jun 1997 14:22:19 -0700 (PDT) Received: from awfulhak.demon.co.uk (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.5/8.8.5) with ESMTP id VAA00608; Tue, 3 Jun 1997 21:01:14 +0100 (BST) Message-Id: <199706032001.VAA00608@awfulhak.demon.co.uk> X-Mailer: exmh version 1.6.9 8/22/96 To: Bill Fenner cc: cvs-etc@freebsd.org, cvs-all@freebsd.org, cvs-committers@freebsd.org Subject: Re: cvs commit: src/etc rc In-reply-to: Your message of "Tue, 03 Jun 1997 08:32:05 PDT." <97Jun3.083213pdt.177489@crevenia.parc.xerox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 03 Jun 1997 21:01:14 +0100 From: Brian Somers Sender: owner-cvs-etc@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Don't forget that if you use a flock(), there is a race condition when > two seperate processes are checking to see if the daemon is running > where one process may think it's not running (its attempt to lock the > pidfile succeeds) and the other process thinks it's running (since its > attempt fails since the first process hadn't released its lock yet). Not true. The lock is a write lock. The check is a read lock. A read lock won't affect another read lock. Remember, you can do just about anything, given the ability to both read lock and write lock. > Bill > -- Brian , Don't _EVER_ lose your sense of humour....