Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
posix_spawn: Don't attempt to dup2 identical fds
macOS Big Sur does not allow the user to `posix_spawn_file_actions_adddup2` an fd to itself. Instead of behaving as a no-op as specified by POSIX 2017.1 (and done by every other operating system), it instead fails with `EBADFD` in `posix_spawn`. This caused a single tricky-to-identify failure in GHC's testsuite.
- Loading branch information