Subject: Re: Mail and locking
To: None <current-users@NetBSD.ORG>
From: None <is@Beverly.Rhein.DE>
List: current-users
Date: 11/30/1996 14:47:10
Michael Graff ( wrote:

 I thought about that.  The "best" way is perhaps to do an flock(), then
: a dot lock.  That way, programs which use flock() will be blocked right
: away, and those which rely on the dot lock will also win.  If you don't
: get the dot lock, however, what do you do?  Release the flock() and back
: out?

I'm not formally trained in CS, but yes, this is what I've read about
avoiding deadlocks.