Skip to content

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