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