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

Open
wants to merge 3 commits into
base: master
Choose a base branch
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!

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