http://bugs.winehq.org/show_bug.cgi?id=1142
------- Additional Comments From wine@deesconsulting.com 2004-10-10 10:51 ------- OK, I'm using this bug as scratchspace atm, so this may or may not be correct.
This message (http://winehq.org/hypermail/wine-devel/2003/03/0481.html) is the beginning of a long thread explaining file locking in wine.
If this message (http://winehq.org/hypermail/wine-devel/2003/03/0577.html) is correct, then the problem appears to be that mandatory locks in windows apps are being mapped onto advisory locks in linux. So the solution could be for wine to check for advisory locks every time before opening a file, and, if a lock exists, enforce mandatory locking on windows apps and return an error.
I don't know if that's right or if it's possible, but I want to write this down before I sleep on it ;)