[core] Remove deleteOnClose which causes lock fail (#624)

This commit is contained in:
LoveSy 2021-05-19 01:41:02 +08:00 committed by GitHub
parent 85a4d4eea1
commit 61bee4743a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -182,7 +182,6 @@ public class ConfigManager {
public boolean tryLock() {
var openOptions = new HashSet<OpenOption>();
openOptions.add(StandardOpenOption.CREATE);
openOptions.add(StandardOpenOption.DELETE_ON_CLOSE);
openOptions.add(StandardOpenOption.WRITE);
var p = PosixFilePermissions.fromString("rw-------");
var permissions = PosixFilePermissions.asFileAttribute(p);