Add os.waitid and os.waitid_result for osx (#12391)

This commit is contained in:
Max Muoto
2024-07-20 23:19:36 -05:00
committed by GitHub
parent 60303f6f06
commit ab55971e5f
2 changed files with 3 additions and 4 deletions

View File

@@ -6,8 +6,6 @@ fcntl.F_OFD_SETLKW
fcntl.F_RDAHEAD
fcntl.F_SETNOSIGPIPE
posixpath.splitroot
posix.waitid
posix.waitid_result
webbrowser.MacOSX
# TODO: fix

View File

@@ -286,13 +286,14 @@ if sys.platform != "win32":
sched_setscheduler as sched_setscheduler,
setresgid as setresgid,
setresuid as setresuid,
waitid as waitid,
waitid_result as waitid_result,
)
if sys.version_info >= (3, 10):
from os import RWF_APPEND as RWF_APPEND
if sys.platform != "darwin" or sys.version_info >= (3, 13):
from os import waitid as waitid, waitid_result as waitid_result
if sys.platform == "linux":
from os import (
GRND_NONBLOCK as GRND_NONBLOCK,