Closed magicant closed 9 months ago
The overarching change involves transitioning from WaitStatus
to a new ProcessState
enum across various files in the Yash shell environment. This shift affects how job states are set, checked, and reported, impacting both foreground and background process handling, job control, and subshell management. The modifications ensure a consistent and updated approach to process state management within the shell's execution environment.
Files | Summary |
---|---|
.../src/bg.rs , .../src/fg.rs , .../src/jobs.rs , .../src/wait/core.rs , .../src/wait/status.rs , .../src/lib.rs , .../src/semantics.rs , .../src/subshell.rs , .../src/system/... , .../src/trap.rs , .../src/command/... |
Transitioned from WaitStatus to ProcessState with updates to related functions, methods, and tests. |
.../src/job.rs , .../src/job/fmt.rs |
Renamed status to state and updated structures and logic to use ProcessState . Improved formatting for job state reports. |
.../src/system/virtual/process.rs |
Updated set_state function and signal handling to use new ProcessState structure, including core dump flag. |
πβ¨ In code's green field, where logic threads weave, A rabbit hopped forth, changes to conceive. From WaitStatus old, to ProcessState new, Shell's heart beats steady, with purpose anew. π
(\(\ ( -.-) o_(")(")
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This pull request replaces use of
WaitStatus
withProcessState
in our public API. SinceWaitStatus
is a type re-exported from the externalnix
crate, there is risk of incompatible changes to the type possibly introduced in the future. For reliable semantic versioning of our crates, we should expose the type defined in our own crate.ProcessState::is_alive
yash-env
impl TryFrom<WaitStatus> for ExitStatus
Use ProcessState in FormatStatusjob::fmt::tests::report_standard
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
WaitStatus
withProcessState
to unify process state management.Style
Tests