🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #819

Re: robust locking

#819
From: Randal Schwartz
Date: Tue, 28 Aug 1990 22:10
25 lines
2004 bytes
In article <2320@cirrusl.UUCP>, dhesi%cirrusl (Rahul Dhesi) writes:
|						 But if the host name in
| the lock file is that of a different host, we refuse to supersede the
| lock.

This is incomplete.  You might as well *never* supersede a lock with
this scheme.  What if "different host" has crashed?

Isn't the proper solution something like lockf?  Or is that a BSD-ism,
or shunned by those in-the-know?  (It wasn't in the One True Unix, so
I can't make any comments on how used and useful it is.)

| I recommend this locking scheme in place of the usual pid-only lock
| file for all software, not just rn and nn.

Why?  You've jumped overboard and still haven't solved the problem of
water leaking into the boat. :-)

Just another puzzled Unix hacker and news reader,
-- 
/=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\
| on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III      |
| merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn |
\=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/
Technical Details
Message-ID: <1990Aug28.221048.12023@iwarp.intel.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utstat!helios.physics.utoronto.ca!news-server.csri.toronto.edu!math.lsa.umich.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!decwrl!ucbvax!iwarp.intel.com!news
References: <2320@cirrusl.UUCP>

Show Full Headers
Complete Article Headers
Message-ID: <1990Aug28.221048.12023@iwarp.intel.com>
Subject: Re: robust locking
Date: Tue, 28 Aug 1990 22:10:48 +0000
From: merlyn@iwarp.intel.com (Randal Schwartz)
References: <2320@cirrusl.UUCP>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utstat!helios.physics.utoronto.ca!news-server.csri.toronto.edu!math.lsa.umich.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!decwrl!ucbvax!iwarp.intel.com!news
Newsgroups: news.software.nn,comp.unix.questions
Sender: news@iwarp.intel.com
Reply-To: merlyn@iwarp.intel.com (Randal Schwartz)
Followup-To: news.software.nn
Organization: Stonehenge; netaccess via Intel, Beaverton, Oregon, USA
Lines: 24
In-Reply-To: dhesi%cirrusl@oliveb.ATC.olivetti.com (Rahul Dhesi)