Skip to content

Commit

Permalink
doc: Mention the child watcher API deprecation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed Oct 9, 2023
1 parent 691d037 commit 2502d2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/aiotools/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ def helper(*args, **kwargs):

def setup_child_watcher(loop: asyncio.AbstractEventLoop) -> None:
if sys.version_info < (3, 12, 0):
# see python/cpython#94597 (issue) and python/cpython#98215 (pr)
try:
watcher_cls = getattr(asyncio, "PidfdChildWatcher", None)
if _has_pidfd and watcher_cls:
Expand Down

0 comments on commit 2502d2f

Please sign in to comment.