Files
ruby/lib
Richard Janita 3541b9e034 [ruby/rubygems] Fix file locks letting multiple processes in when lock files are removed
Gem.open_file_with_lock removed its lock file after releasing the lock.
Since flock locks the file itself rather than its path, a process that
was waiting on the old file could acquire it after it had been removed,
while a newly arriving process created a fresh lock file and locked it
immediately, so both ran at the same time.

Remove the lock file while still holding the lock, and after acquiring
it, check that the locked file is still the one at the lock path,
retrying otherwise.

https://github.com/ruby/rubygems/commit/9a93c235e7
2026-10-26 05:29:46 +00:00
..
2026-10-08 03:02:55 +00:00
2026-10-19 17:30:05 -04:00
2026-10-08 02:34:50 +00:00
2026-10-11 04:27:15 +09:00
2026-10-08 02:52:34 +00:00
2025-10-31 00:14:23 +00:00
2026-10-08 13:57:02 +09:00
2026-06-02 05:17:51 +00:00
2025-12-10 07:08:05 +00:00
2026-10-15 08:00:21 +09:00
2026-02-12 20:35:18 +01:00
2025-12-10 06:43:06 +00:00
2024-11-12 11:53:01 +09:00
2026-06-22 01:17:19 +00:00
2026-10-08 02:40:51 +00:00
2024-12-13 00:50:02 +00:00
2026-10-08 02:32:32 +00:00
2026-10-08 03:09:36 +00:00
2026-10-08 02:29:13 +00:00
…
2025-11-10 10:03:07 +00:00