From: Joe C. <ma...@ma...> - 2001-11-23 23:32:01
|
On Fri, 2001-11-23 at 18:16, Alistair Riddell wrote: > On 24 Nov 2001, Joe Clarke wrote: > > > > Was it decided that the byte locked used by CNID was not working on > > > Linux? I don't remember seeing any positive response on that. For > > > those who can, I have attached a sample program to test the lock set and > > > release code in CNID DB. Compile it using: > > Works correctly for me under Linux; on ext2 and reiserfs. The last process > to exit always gets the close lock. That's the way it should work. I suppose that byte locking works insofar that CNID DB needs it. Alistair, can you try this slightly modified version? The first process should always get an exlcusive byte lock, while all the others should get a shared byte lock. Thanks. Joe > > -- > Alistair Riddell - BOFH > IT Manager, George Watson's College, Edinburgh > Tel: +44 131 446 6070 Fax: +44 131 452 8594 > Microsoft - because god hates us > > |