This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Unreliable flock


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

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]