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

Race at exit

Open orivej opened this issue 11 years ago • 0 comments

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 be deleted before it is released.

orivej avatar Jun 25 '14 16:06 orivej