diff --git a/src/aiotools/server.py b/src/aiotools/server.py index 4cee7a4..a570809 100644 --- a/src/aiotools/server.py +++ b/src/aiotools/server.py @@ -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: