mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-03 20:42:09 +08:00
fix FileLock: fd could be closed twice (#21362)
old-commit-hash: 766f3281bb5edc8ab4e86a745e07f4034e4f249c
This commit is contained in:
@@ -134,7 +134,6 @@ class FileLock {
|
||||
return;
|
||||
}
|
||||
if (HANDLE_EINTR(flock(fd_, op_)) < 0) {
|
||||
close(fd_);
|
||||
LOGE("Failed to lock file %s, errno=%d", fn_.c_str(), errno);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user