Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!pa.dec.com!rust.zso.dec.com!shlump.nac.dec.com!decvax.DEC.COM!evans From: evans@decvax.DEC.COM (Marc Evans) Newsgroups: comp.lang.perl Subject: locking dbm files Keywords: dbmopen, dbmclose, flock Message-ID: <21090@shlump.nac.dec.com> Date: 14 Mar 91 17:30:58 GMT Sender: news@shlump.nac.dec.com Reply-To: evans@decvax.DEC.COM Organization: Synergytics Lines: 16 I am using the dbm (ndbm too) facilities provided by perl. It would appear that the file(s) opened by dbmopen are not locked and therefore data can be lost if more then one process attempts to modify the database at the same time. It would also appear that this may be caused by the library functions on the host, not perl itself. Has anybody else had this type of problem, and if so, how did you go about performing locking? Thanks in advance - Marc -- =========================================================================== Marc Evans - WB1GRH - evans@decvax.DEC.COM | Synergytics (603)635-8876 Unix and X Software Consultant | 21 Hinds Ln, Pelham, NH 03076 ===========================================================================