bpo-35674: Expose posix_spawnp by nanjekyejoannah · Pull Request #11554 · python/cpython
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The #ifdef must be outside [clinic start generated code].
I propose to reuse the existring #ifdef HAVE_POSIX_SPAWN, so don't add a new #ifdef HAVE_POSIX_SPAWN but just move the closing #endif /* HAVE_POSIX_SPAWN */ to include your new code.
Note: Currently, "make clinic" fails. Make sure that "make clinic" works as expected.
I bet that posix_spawnp() is always available when posix_spawn() is available. If it's not the case, we can fix that later.