mirror of
https://github.com/xcat2/confluent.git
synced 2025-02-17 11:09:28 +00:00
Under windows, we can't use flock. However we can get locking using msvcrt using different, but related semantics. Imitate whole file locking by just locking first byte. We have to make sure we seek() to the same place when locking and unlocking, as Windows requires the offset to be same for both operations.
Description
Languages
Python
80.3%
Shell
15.6%
C
3.6%
Perl
0.3%