mirror of
https://github.com/vhaudiquet/ecrou.git
synced 2026-11-12 22:22:44 +00:00
refactor(vm): split machine-process supervision into supervise.rs
vm.rs composed run options and supervised the machine process in one file. The process half moves out: the fork that enters the VM loop, the console relay, the wait and exit-status decode, and the termios save/restore. run_prepared keeps the composition and calls into the new module. No behavior change.
This commit is contained in:
1 parent
3e839cb5ca
commit
a758689bbe
4 files changed
+254
-220
No files matched your search
@@ -31,6 +31,7 @@ Rules:
|
||||
- `cli` - entry point and flags (`crates/ecrou-cli/src/main.rs`,
|
||||
`crates/ecrou-cli/src/cli.rs`)
|
||||
- `vm` - the run flow, one-shot machines (`crates/ecrou/src/vm.rs`)
|
||||
- `supervise` - machine process fork and wait (`crates/ecrou/src/supervise.rs`)
|
||||
- `krun` - the libkrun FFI (`crates/ecrou/src/krun.rs`)
|
||||
- `guest` - the guest init script (`crates/ecrou/src/guest.rs`)
|
||||
- `rootfs` - cache-aware preparation and persistence
|
||||
|
||||
Reference in new issue
Block a user