This is the mail archive of the
cygwin
mailing list for the Cygwin project.
fcntl (locking) bug?
- From: Margit Schubert-While <margitsw at t-online dot de>
- To: cygwin at cygwin dot com
- Date: Sun, 07 Jun 2009 14:45:54 +0200
- Subject: fcntl (locking) bug?
>> This is 1.5.25 but also happens on earlier versions.
>> It would appear that placing a shared read lock
>> on a file open for input/output is preventing the
>> the process itself from writing.
Corinna scribeth :
> Cygwin up to release 1.5.25 implements fcntl locks using Windows file
> locking calls. Windows semantics disallow write access to a shared lock
> for all processes, even the one setting up the first lock. Only an
> exclusive lock allows the locking process to write.
Hmm. Unfortunate and not intuitive. Hmm - fcntl is in the
Cygwin SUSV3 compat list
-http://cygwin.com/cygwin-api/compatibility.html#std-susv3 ?
SUSV3 mandates this functionality.
Maybe an addendum somewhere or an entry
in http://cygwin.com/cygwin-api/std-notes.html ?
Margit
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/