From owner-freebsd-stable Wed Jun 19 7:11: 1 2002 Delivered-To: freebsd-stable@freebsd.org Received: from sea-incorporated.com (caribbean.sea-incorporated.com [209.74.10.130]) by hub.freebsd.org (Postfix) with ESMTP id 191D337B401 for ; Wed, 19 Jun 2002 07:10:56 -0700 (PDT) Received: from sea-incorporated.com (localhost [127.0.0.1]) by sea-incorporated.com (8.12.3/8.12.3) with ESMTP id g5JE9k0t090006; Wed, 19 Jun 2002 10:09:46 -0400 (EDT) (envelope-from geoff@sea-incorporated.com) Received: from localhost (geoff@localhost) by sea-incorporated.com (8.12.3/8.12.3/Submit) with ESMTP id g5JE9hNg090002; Wed, 19 Jun 2002 10:09:44 -0400 (EDT) Date: Wed, 19 Jun 2002 10:09:43 -0400 (EDT) From: "Geoffrey C. Speicher" To: "Matthew D. Fuller" Cc: freebsd-stable@freebsd.org, Matt Simerson , Paul Herman Subject: Re: bug in pw, -STABLE [patch] In-Reply-To: <20020619090613.GE72664@over-yonder.net> Message-ID: <20020619095111.B89880-100000@sea-incorporated.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 19 Jun 2002, Matthew D. Fuller wrote: > I'm reasonably sure I don't really like blocking indefinately. There's > also the potential for a kill'd program to lock you out of changes until > you manually delete the lockfile, which would be shared with all such > locking. Offhand, I'm going to say maybe we should retry a given number > of times (say 10) at a given interval (say 1 second) before failing. It > may also be a not entirely bad idea to try and cruft in some code to read > the file and try to track down the process holding it to make sure it's > still alive. Durn it, this nice simple code is starting to get > complicated. I didn't want to go there, but as long as you brought it up... :) I've heard talk of a central interface to handle pid files. Maybe this is a good opportunity to lay some groundwork. The code that you're talking about writing is common to so many applications that it may just be time to do it once and do it right. I could probably even help. Geoff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message