mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-26 21:53:51 +08:00
fix FileLock: fd could be closed twice (#21362)
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