Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wasi: Remove vbus leftovers and improve task joining #3627

Merged
merged 1 commit into from
Feb 26, 2023

Conversation

theduke
Copy link
Contributor

@theduke theduke commented Feb 25, 2023

  • A new TaskStatus is introduced that specifies the current state of a task
    (usually a process or thread)
  • Status tracking is refactored to use tokio::sync::watch instead of a
    homegrown solution which combined channels and mutexes
  • The task status now not just tracks an exit code, but also the ocurred error
    This helps consumers of the task status to know that and error
    ocurred, and which one, which helps debugging / logging and potential
    recovery
  • Remove the unused VBUS crate leftover types and traits
    Almost all gone, except for the VirtualBusError
  • Move SignalHandlerAbi types to os::signal

Closes #3625

* A new TaskStatus is introduced that specifies the current state of a task
  (usually a process or thread)
* Status tracking is refactored to use tokio::sync::watch instead of a
  homegrown solution which combined channels and mutexes
* The task status now not just tracks an exit code, but also the ocurred error
  This helps consumers of the task status to know that and error
  ocurred, and which one, which helps debugging / logging and potential
  recovery
* Remove the unused VBUS crate leftover types and traits
  Almost all gone, except for the VirtualBusError
* Move SignalHandlerAbi types to os::signal
@theduke
Copy link
Contributor Author

theduke commented Feb 25, 2023

Per @john-sharratt s request I ensured that dash still works correctly.
bash is broken in multiple ways, but that's also true on master, no change here.

@theduke theduke merged commit bc2a2dd into master Feb 26, 2023
@theduke theduke deleted the wasi-spawn-handle branch February 26, 2023 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WASIX: Vbus and Thread Joining Cleanup
2 participants