fcntl (locking) bug?

Margit Schubert-While margitsw@t-online.de
Sun Jun 7 12:46:00 GMT 2009


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



More information about the Cygwin mailing list