Files
devvm/docs
w3cjandClaude Opus 5.5 866b9e0930 fix: the processes devvm starts don't inherit the files it was given
A terminal, an editor or a test harness can give devvm files past the
standard three without close-on-exec (testscript's ttyin puts a pty on
descriptor 3), and devvm's background processes then held them, keeping
that terminal or pipe open as long as they ran: on Linux a script hung
until its timeout. devvm now marks every file it was given from
descriptor 3 up close-on-exec as it starts (platform.CloseInheritedOnExec,
called first in main), which covers every process it starts, Lima's
included, and keeps them open itself.

TestCloseInheritedOnExec re-runs the test binary with an extra file on
descriptor 3, starts a detached process and checks it doesn't hold it
(/proc/<pid>/fd on Linux, lsof on macOS); layer_add.txtar now answers
yes in a terminal.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 11:34:42 -07:00
..