You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 14ca267
Browse filesBrowse the repository at this point in the historyBrowse files
cli: wait for a run's control endpoint on its VM's process
A managed cold run waits for its control endpoint with
Session::connect_launched_cancellable, which ends the wait once OpenVMM
exits, rather than at its timeout. It took the old supervisor's child
type, spawn::Launched, which host::vm::Launched lent it through
child_mut, and polled that child's status.
It now takes the verified process of the run's host::vm::Launched,
beside the endpoint and capability that the launch supplies, and asks
that process whether it has exited. The process is the same OpenVMM,
held through its pidfd or process handle, so the wait notices its exit
as the child's status did, without reaping it: the foreground still
reaps it through wait_status. A check that fails still keeps the wait
going until the timeout. child_mut becomes private to host::vm, whose
wait_status alone uses it, and the session's comments no longer name
host::instance. sandbox exec and sandbox stop attach through
Session::reattach, which verifies a saved VM through host::vm, and do
not change.
A new test gives the wait a process that runs and then exits: the wait
goes on while the process runs, and ends as a closed endpoint once it
exits, rather than at its timeout, on Linux and Windows.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments