Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!bcm!convex!news From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.lang.perl Subject: Re: locking dbm files Keywords: dbmopen, dbmclose, flock Message-ID: <1991Mar14.235335.1712@convex.com> Date: 14 Mar 91 23:53:35 GMT References: <21090@shlump.nac.dec.com> <1991Mar14.205242.23220@convex.com> <125585@uunet.UU.NET> Sender: news@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 9 Nntp-Posting-Host: pixel.convex.com From the keyboard of rbj@uunet.UU.NET (Root Boy Jim): :File locking is easy, unless, of course you are using NFS. Use lockf (fcntl) instead of flock then. And risk hanging forever should the lockdaemon go south. Actually, I haven't had too much trouble with it in the last few months on this particular machine, but on other convexen here there have been occasional anomalies. --tom