Skip to content

Conversation

@brannondorsey
Copy link
Owner

Don't try and serialize and send child process errors over the pipe and panic if that fails.

Instead, maintain a small collection of child process exit statuses that are interpret-able by the parent.

This results in no underlying std::io::Errors being made available from the child but I think this may be a worthwhile tradeoff for simpler code and less syscalls/opportunity for error and ambiguity.

Because this is a breaking change we might as well lump any other breaking changes in with it. We could group this with:

  • An overall simplification of errors
  • Making errors Send and Sync

Don't try and serialize and send child process errors over the pipe and
panic if that fails.

Instead, maintain a small collection of child process exit statuses that
are interpretable by the parent.

This results in no underlying std::io::Errors being made available from
the child but I think this may be a worthwhile tradeoff for simpler code
and less syscalls/oppertunity for error and ambiguity
@brannondorsey brannondorsey force-pushed the simplify-error-handling-in-child-process branch from 2349927 to 668a44e Compare March 17, 2025 00:12
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.

2 participants