Skip to content

Conversation

@blackgnezdo
Copy link
Contributor

@bgamari, this makes processT251 pass on OpenBSD

bgamari and others added 3 commits March 20, 2023 22:23
Previously we would assume that the pipe used to communicate
errors from the child back to the parent did not shadow the standard
descriptors (stdin, stdout, and stderr). Somewhat surprisingly, this
appears to hold most platforms. However, OpenBSD appears to be a notable
exception. This lead to the failure of the `processT251` test.

Avoid relying on this assumption by `dup`ing the pipe fds until they end
up out of the standard fd range.

Closes haskell#266.
Closing an already closed FD is OK and should not cause failures.
@bgamari
Copy link
Contributor

bgamari commented Mar 24, 2023

Thanks @blackgnezdo !

@bgamari bgamari merged commit c956562 into haskell:master Mar 24, 2023
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