checking if a file is already opened file locks

1998-11-08 Thread david
Hello, I've just discovered that 'open' returns a new descriptor (new_fd) when you open a file several times and that fcntl( new_fd, F_SETLK ... and fcntl( new_fd, F_GETLK ... won't see if the file was already locked : You can get several exclusive locks by opening a file several times and

Re: checking if a file is already opened file locks

1998-11-08 Thread Glynn Clements
david wrote: I've just discovered that 'open' returns a new descriptor (new_fd) when you open a file several times and that fcntl( new_fd, F_SETLK ... and fcntl( new_fd, F_GETLK ... won't see if the file was already locked : You can get several exclusive locks by opening a file several