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

Fix incorrect posix_spawn* error checking #2513

Closed
wants to merge 3 commits into from

Conversation

kosayoda
Copy link
Contributor

@kosayoda kosayoda commented Sep 23, 2024

The posix_spawn functions do not use -1 as the sentinel for errors,
rather 0 is return on success and every other return value is an
error.

Adds a test case to test posix_spawn failure.

Checklist:

  • I have read CONTRIBUTING.md
  • I have written necessary tests and rustdoc comments

The posix_spawn functions do not use `-1` as the sentinel for errors,
rather `0` is return on success and every other return value is an
error.

Adds a test case to test posix_spawn failure.
@SteveLauC
Copy link
Member

Thanks for catching it!

@SteveLauC
Copy link
Member

Hi, I recently hit this issue and fixed it myself (because I forgot about this PR, sorry 🤦‍♂️)

@SteveLauC
Copy link
Member

Close as this is superseded by #2595

@SteveLauC SteveLauC closed this Feb 5, 2025
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