Re: File Locking Bug

Dr. Werner Fink (werner@suse.de)
Wed, 24 Mar 1999 13:16:18 +0100


On Wed, Mar 24, 1999 at 11:13:49AM +0000, David Howells wrote:
> I've found that two different processes can both simultaneously hold write
> locks on a file, as long as one uses fcntl() and the other uses flock()!
> Should this be the case? Surely, write locks of any sort should be mutually
> exclusive.
>
> This is using linux 2.2.3

Which libc the programs use? I'd expect that flock() is emulated by fcntl().

Werner

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/