python-simpleflock icon indicating copy to clipboard operation
python-simpleflock copied to clipboard

Simple flock-based file locking using Python's `with` syntax

Results 6 python-simpleflock issues
Sort by recently updated
recently updated
newest added

When simpleflock is trying to acquire a lock on a NFS mount and that lock is held by another process, upon release of the lock, an `OSError: [Errno 116] Stale...

I try to use python-simpleflock in my project, but I find it can not provide the synchronization feature as I think it should. I have two files: simple_flock.py, simple_flock2.py. The...

It is not a problem to use `flock` calls directly if `flock` is available, but there is a missing niche to provide this functionality on alternative platforms.

This fixes the issue #2.

After `fcntl.flock(self._fd, fcntl.LOCK_UN)` another process may acquire a lock before `os.unlink(self._path)` deletes it, so a third process may acquire it while the second still holds it. The lock file should...