Is HDB locking safe?

Peter da Silva peter at ficc.ferranti.com
Fri Aug 17 05:49:10 AEST 1990


In article <4024 at rtifs1.UUCP> trt at 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 at ferranti.com (currently not working)
peter at hackercorp.com



More information about the Comp.unix.wizards mailing list