Update certbot/lock.py

Co-Authored-By: ohemorange <ebportnoy@gmail.com>
This commit is contained in:
Adrien Ferrand
2019-05-25 09:16:03 +02:00
committed by GitHub
co-authored by ohemorange
parent fe041ff9ff
commit 14a5c9a50d
+1 -1
View File
@@ -209,7 +209,7 @@ class _WindowsLockMechanism(_BaseLockMechanism):
A Windows lock file mechanism. A Windows lock file mechanism.
By default on Windows, acquiring a file handler gives exclusive access to the process By default on Windows, acquiring a file handler gives exclusive access to the process
and results in an effective lock. However, it is possible to explicitly acquire the and results in an effective lock. However, it is possible to explicitly acquire the
file handler in shared access in terms of read and write, and this is done by security.open file handler in shared access in terms of read and write, and this is done by filesystem.open
and io.open in Python. So an explicit lock needs to be done through the call of and io.open in Python. So an explicit lock needs to be done through the call of
msvcrt.locking, that will lock the first byte of the file. In theory, it is also msvcrt.locking, that will lock the first byte of the file. In theory, it is also
possible to access a file in shared delete access, allowing other processes to delete an possible to access a file in shared delete access, allowing other processes to delete an