Skip to content

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
@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