mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 16:08:56 +00:00
* fix(studio-server): replace lock start records by rename The owner lock's start records (owner.pid.start, owner.pid.evict.start) and the daily prune stamp are written through replaceFileAtomically: an exclusive temp sibling renamed over the name. A symlink, hard link or other entry already at that name is replaced rather than written through. Lock files (owner.pid, its start record, owner-url.json) are read with O_NOFOLLOW and O_NONBLOCK and only when they are regular files, so a link is not followed and a FIFO is not waited on. * fix(studio-server): clear lock records before replacing them The start records and the daily prune stamp are removed before the rename, so a symlink to a read-only file or a read-only file at that name no longer fails the write. The prune stamp is read without following links or waiting on a FIFO, like the other lock files.