From: Hal Fulton Date: 2003-10-07T04:36:24+09:00 Subject: Re: bug in open/flock ? Ara.T.Howard wrote: > in the code below, i am able to obtain TWO exclusive locks on files using the > following logic: > > iff flock(LOCK_EX | LOCK_NB) fails, then open again and retry > > this should not be possible should it?? > > note that the following code SHOULD deadlock - but does not. [snip] Aren't locks on a per-process basis? Ruby threads all run in the same process. Hal