Re: File Locking Bug

Trond Myklebust (trond.myklebust@fys.uio.no)
24 Mar 1999 14:29:00 +0100


David Howells <David.Howells@nexor.co.uk> writes:

> 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
>

Read /usr/src/linux/Documentation/locks.txt to find out why this is
not the case.

Trond

-
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/