mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 01:34:29 +01:00
The start file's lock had the same fault as the nightly lease: it was
freed only when the file was closed, so a child process that held a
copy of the handle until it ran its program kept the file locked. The
next start then took the file for another copy of the app that was
starting, and did not read or write it. Under cargo test,
gpu::tests::a_damaged_or_unreadable_start_file_is_ignored failed this
way while the installed-root test started its child process.
StartFile now unlocks the file when it is dropped, and a new test holds
a copy of the file's handle while a start ends. The test guard from
e94b74eea4 (by mockydevs), whose write side was removed in #8800, kept
only its read side and no longer stopped any test from starting a
program. The unlock replaces it, so the guard has been removed.