Enable flock on read-only filesystem
**[man 2 flock](https://linux.die.net/man/2/flock)**:
> A shared or exclusive lock can be placed on a file regardless of the mode in which the file was opened.
**[msdn](https://docs.microsoft.com/en-us/windows/desktop/api/fileapi/nf-fileapi-lockfileex)**:
> The handle must have been created with either the GENERIC_READ or GENERIC_WRITE access right.
@@ -18,7 +18,7 @@ namespace {
}
TFileLock::TFileLock(const TString& filename, const EFileLockType type)
- : TFile(filename, OpenAlways | RdWr)
+ : TFile(filename, OpenAlways | RdOnly)
, Type(type)
{
}
