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

os.waitid explicitly excludes macOS #113536

Closed
ronaldoussoren opened this issue Dec 28, 2023 · 1 comment
Closed

os.waitid explicitly excludes macOS #113536

ronaldoussoren opened this issue Dec 28, 2023 · 1 comment
Labels
OS-mac type-feature A feature request or enhancement

Comments

@ronaldoussoren
Copy link
Contributor

ronaldoussoren commented Dec 28, 2023

Feature or enhancement

Proposal:

Expose os.waitid on macOS as well.

As mentioned in #55021 the waitid(2) function is exposed in posixmodule.c, but that code explicitly hides the function on macOS without a clear reason. And in any case, the reason to exclude the function was made for an OS version that we no longer support (10.8 or earlier).

It is better to just expose the function and document issues when they come up (and file issues with Apple as needed).

Filing this a "feature" because this is IMHO not something we can back port to stable releases.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

#55021

Linked PRs

@ronaldoussoren ronaldoussoren added type-feature A feature request or enhancement OS-mac labels Dec 28, 2023
ronaldoussoren added a commit to ronaldoussoren/cpython that referenced this issue Dec 28, 2023
This API has been available on macOS for a long time, but was
explicitly excluded due to unspecified problems with the API
in ancient versions of macOS.
ronaldoussoren added a commit to ronaldoussoren/cpython that referenced this issue Dec 28, 2023
@ronaldoussoren
Copy link
Contributor Author

The issue mentioned that waiting for zombies with waitid failed in past versions on macOS. I cannot reproduce this on current versions of the OS.

ronaldoussoren added a commit that referenced this issue Jan 1, 2024
* gh-113536: Expose `os.waitid` on macOS

This API has been available on macOS for a long time, but was
explicitly excluded due to unspecified problems with the API
in ancient versions of macOS.

* Document that the API is available on macOS starting in Python 3.13
kulikjak pushed a commit to kulikjak/cpython that referenced this issue Jan 22, 2024
* pythongh-113536: Expose `os.waitid` on macOS

This API has been available on macOS for a long time, but was
explicitly excluded due to unspecified problems with the API
in ancient versions of macOS.

* Document that the API is available on macOS starting in Python 3.13
aisk pushed a commit to aisk/cpython that referenced this issue Feb 11, 2024
* pythongh-113536: Expose `os.waitid` on macOS

This API has been available on macOS for a long time, but was
explicitly excluded due to unspecified problems with the API
in ancient versions of macOS.

* Document that the API is available on macOS starting in Python 3.13
Glyphack pushed a commit to Glyphack/cpython that referenced this issue Sep 2, 2024
* pythongh-113536: Expose `os.waitid` on macOS

This API has been available on macOS for a long time, but was
explicitly excluded due to unspecified problems with the API
in ancient versions of macOS.

* Document that the API is available on macOS starting in Python 3.13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-mac type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant