SCCS and RCS over NFS (was: Creating a lock file in sh?)
Chip Salzenberg
chip at tct.com
Mon Apr 22 11:46:26 AEST 1991
According to eggert at twinsun.com (Paul Eggert):
>For example (Bourne shell):
>
> if (umask 777; echo >lock)
> then
> Perform whatever operation required locking.
> rm -f lock
> else
> Report that you could not obtain the lock.
> fi
Unfortunately, this method is still prone to spurious failure when an
imperfect network loses the ACK from the initial creation attempt.
"NFS: We Bring Net Errors To Life."
--
Brand X Industries Custodial, Refurbishing and Containment Service:
When You Never, Ever Want To See It Again [tm]
Chip Salzenberg <chip at tct.com>, <uunet!pdn!tct!chip>
More information about the Comp.unix.shell
mailing list