robust locking

Randal Schwartz merlyn at iwarp.intel.com
Wed Aug 29 08:10:48 AEST 1990


In article <2320 at 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 at iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn |
\=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/



More information about the Comp.unix.questions mailing list