Skip to content

Fix posix_spawn() error handling. #855

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

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Dec 12, 2024

posix_spawn() does not (portably) set errno. Instead, it returns its error code. Fix our call.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

`posix_spawn()` does not (portably) set `errno`. Instead, it returns its error code. Fix
our call.
@grynspan grynspan added bug 🪲 Something isn't working linux 🐧 Linux support (all distros) darwin 🍎 macOS, iOS, watchOS, tvOS, and visionOS support exit-tests ☠️ Work related to exit tests freebsd 😈 FreeBSD support labels Dec 12, 2024
@grynspan grynspan self-assigned this Dec 12, 2024
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan grynspan merged commit a239222 into main Dec 12, 2024
3 checks passed
@grynspan grynspan deleted the jgrynspan/fix-posix-spawn-error-handling branch December 12, 2024 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working darwin 🍎 macOS, iOS, watchOS, tvOS, and visionOS support exit-tests ☠️ Work related to exit tests freebsd 😈 FreeBSD support linux 🐧 Linux support (all distros)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants