Skip to content

Use Infallible/never instead of () when creating a process#840

Open
Bee4Queer wants to merge 1 commit into
vinc:trunkfrom
Bee4Queer:tidy/infallible
Open

Use Infallible/never instead of () when creating a process#840
Bee4Queer wants to merge 1 commit into
vinc:trunkfrom
Bee4Queer:tidy/infallible

Conversation

@Bee4Queer
Copy link
Copy Markdown

For the various functions used to spawn a process, use ! and Infallible instead of (), making the code more clear and potentially allowing better optimizations.

Specific functions changed:

  • sys::process::spawn::exec - returns !
  • sys::process::spawn::spawn - returns Result<Infallible, ExitCode>
  • sys::syscall::service::spawn - No signature change, but adjusted to fit the new signature of sys::process::spawn::spawn

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.

1 participant