From owner-cvs-etc Tue Jun 3 08:33:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id IAA04376 for cvs-etc-outgoing; Tue, 3 Jun 1997 08:33:06 -0700 (PDT) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id IAA04371; Tue, 3 Jun 1997 08:33:04 -0700 (PDT) Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <18085(6)>; Tue, 3 Jun 1997 08:32:23 PDT Received: from localhost by crevenia.parc.xerox.com with SMTP id <177489>; Tue, 3 Jun 1997 08:32:13 -0700 To: cvs-etc@freebsd.org, cvs-all@freebsd.org, cvs-committers@freebsd.org Subject: Re: cvs commit: src/etc rc Date: Tue, 3 Jun 1997 08:32:05 PDT From: Bill Fenner Message-Id: <97Jun3.083213pdt.177489@crevenia.parc.xerox.com> 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). Bill