-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR: 1. Adds the `--serf-bin` option for specifying a serf executable 2. Sets `u3_Host.wrk_c` to `--serf-bin`'s value if specified, self otherwise 3. Performs boot's replay in a subprocess that spawns our own serf (by default) or the specified serf if provided 4. Spawns a thread in `_cw_play` that exits if it reads `EOF` from `STDIN` (thereby ensuring the child process for replaying events exits whenever the parent is killed) These changes allow Ares (or any other runtime) to implement its own `play` subcommand and have Vere use it for the boot process's replay functionality. Tests: - [x] `linux-x86_64` subcommand, replay via boot, killing king via INT, KILL, TERM - [x] `macos-aarch64` subcommand, replay via boot, killing king via INT, KILL, TERM
- Loading branch information
Showing
1 changed file
with
130 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters