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

fork-exec: Don't double-close parent fds #307

Merged
merged 1 commit into from
Mar 31, 2024
Merged

Conversation

bgamari
Copy link
Contributor

@bgamari bgamari commented Mar 26, 2024

Previously the fork/exec backend would attempt to close stdin, et al. on process spawn failure. This result in spurious close failures due to runInteractiveProcess doing the same. Consequently, the cause of the failure would be confusingly mis-identified.

Fixes #306.

Previously the fork/exec backend would attempt to close
stdin, et al. on process spawn failure. This result in spurious `close`
failures due to `runInteractiveProcess` doing the same. Consequently,
the cause of the failure would be confusingly mis-identified.

Fixes haskell#306.
@snoyberg snoyberg merged commit a6b7cc6 into haskell:master Mar 31, 2024
30 checks passed
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.

do_spawn_fork double-closes the parent STDIO pipe FDs
3 participants