Re: fcntl file locking and pthreads

From: Jamie Lokier (jamie@shareable.org)
Date: Sun May 04 2003 - 07:58:45 EST


Mikhail Kruk wrote:
> on 2.4 kernels fcntl-based file locking does not work with
> clone-based threads as expected (by me): two threads of the same process
> can acquire exclusive lock on a file at the same time.
> flock()-based locks work as expected, i.e. only one thread can have an
> exclusive lock at a time.

Is this true even when _not_ setting CLONE_FILES?

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



This archive was generated by hypermail 2b29 : Wed May 07 2003 - 22:00:19 EST