-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.1.0] Ensure that the lock file still exists when AcquireLock retur…
…ns. (#25027) This makes it possible to use an exclusive lock to guard against concurrent deletion: otherwise, process 1 might delete the file and release the exclusive lock in between process 2 opening the file and acquiring a shared lock. In practice, process 1 will be garbage-collecting an old install base while process 2 will be attempting to start itself on the same install base. (Note that install base locking is yet to be implemented.) Also remove an ancient workaround for old glibcs: OFD locks have been available under _GNU_SOURCE on Linux since 2014. PiperOrigin-RevId: 699142575 Change-Id: Ifc931c1f2952d97c449aaeee17e6ea43cb4c637e
- Loading branch information
Showing
3 changed files
with
205 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.