Unreliable flock

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Apr 5 08:33:00 GMT 2016


On Apr  5 05:08, Andrey Repin wrote:
> Greetings, Corinna Vinschen!
> 
> > I guess you read that
> > there's a way to use Windows mandatory locks, too.
> 
> Yes, if I compile my own program. But I'm not. I'm writing a shell script.
> And /usr/bin/flock fails to lock a file. Even though the man claims that it
> "uses an exclusive lock by default".

exclusive != mandatory

See, e.g, http://man7.org/linux/man-pages/man2/fcntl.2.html


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20160405/cc3ed439/attachment.sig>


More information about the Cygwin mailing list