[RFC] win98: problem with LockFileEx
Alexander Belchenko
bialix at ukr.net
Thu Apr 5 14:10:05 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Just discover that LockFileEx does not work on Windows 98.
Error say that 'This function allowed only in Win32 mode'.
Probably because both bzr.exe and python.exe is command-line utilities,
they run in DOS-compatibility mode. I'm not sure, though.
But when I change our code from LockFileEx/UnlockFileEx
to LockFile/UnlockFile it's works OK.
LockFile allows us obtain only exclusive lock,
regardless of read/write mode. It's main limitation, but it better
than completely broken LockFileEx behavior.
I propose to implement separate code path for locking files on win98.
To detect actual Windows version we have in module win32utils.py
attribute 'winver'. So it's easily could be separated depend on platform.
Thoughts/suggestions?
[µ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGFPUtzYr338mxwCURAkKqAJ0XaKKn6lyeavfLrWR9kNtOdDDLUwCggjwK
M4ryPS/B5lG8LK+ujqBDAZY=
=cRls
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list