Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!lavaca.uh.edu!uhnix1!sugar!ficc!peter From: peter@ficc.ferranti.com (Peter da Silva) Newsgroups: comp.unix.wizards Subject: Re: Is HDB locking safe? Message-ID: Date: 16 Aug 90 19:49:10 GMT References: <577@oglvee.UUCP> <4024@rtifs1.UUCP> Reply-To: peter@ficc.ferranti.com (Peter da Silva) Organization: Xenix Support, FICC Lines: 6 In article <4024@rtifs1.UUCP> trt@rti.rti.org (Thomas Truscott) writes: > (a) A "sleep(1);" is not enough to avoid a race on a very busy system. No sleep is ever enough. The system could simply be busier than you ever imagined. You don't solve a race problem by narrowing the window: try checking the return value of the "unlink": that's the point of failure. -- Peter da Silva. `-_-' +1 713 274 5180. 'U` peter@ferranti.com (currently not working) peter@hackercorp.com