Repository navigation
v0.15.2 — self-update no longer fails with Text file busy
·
11 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Fixed
self-updateno longer aborts withText file busywhen verifying the
staged binary. The installer held its ownO_RDWRstaging handle open
while trying to execute the staged file, and Linux refusesexecveon any
file with an open write descriptor (ETXTBSY) — so every install failed
withstaged binary cannot start on this host: Text file busy, left the
previous binary untouched, and suggested retrying, which could never help.
The write handle is now dropped and the staged file reopened read-only
before the probe runs. Production always used the real exec-based probe,
but the tests stubbed it out, which is why the bug survived review; a new
regression test mirrors theETXTBSYprecondition by rejecting the install
while any write descriptor still points at the staged file.