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

posix_spawn: Add support for posix_spawn_file_actions_addchdir_np #304

Merged
merged 2 commits into from
Feb 13, 2024

Conversation

bgamari
Copy link
Contributor

@bgamari bgamari commented Feb 8, 2024

It appears that glibc still has not introduced support for posix_spawn_file_actions_addchdir, despite it being ratified by Austin Group. Add support for posix_spawn_file_actions_addchdir_np as a stop-gap solution since the removal of the vfork path has turned up some pathological cases in the fork path in user code.

Also fix a typo which rendered the previous posix_spawn_file_actions_addchdir_np path unusable.

Previously the `configure` script would check for
`posix_spawn_file_actions_addchdir` yet then the implementation would
look for `HAVE_posix_spawn_file_actions_addchdir_np`. Fix this.
It appears that glibc still has not introduced support for
`posix_spawn_file_actions_addchdir`, despite it being ratified by Austin
Group. Add support for `posix_spawn_file_actions_addchdir_np` as a
stop-gap solution since the removal of the `vfork` path has turned up
some pathological cases in the `fork` path in user code.
@adamgundry
Copy link
Member

FWIW I raised #303 with a bit more background.

@bgamari bgamari merged commit 53c6905 into haskell:master Feb 13, 2024
30 checks passed
@bgamari bgamari deleted the wip/posix_spawn_addchrdir branch February 13, 2024 16:16
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