Skip to content

Conversation

@dkulyk
Copy link

@dkulyk dkulyk commented Dec 5, 2025

On recent macOS SDKs posix_spawn_file_actions_addchdir_np() is declared as deprecated and triggers a -Werror,-Wdeprecated-declarations build failure when compiling ext/standard/proc_open.c. The deprecation notice explicitly recommends using the standardized posix_spawn_file_actions_addchdir() function instead.

This patch makes proc_open() prefer the standard POSIX function when it is available, while keeping the existing _np behavior as a fallback.

@Girgias Girgias requested a review from devnexen December 5, 2025 17:37
Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the change itself is good, regardless of the deprecation, standard is better over non portable (_np) versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants