Andrew Svetlov <andrew.svet...@gmail.com> added the comment:

My non-LTS Ubuntu also has 5.3 kernel but I'm talking about the oldest 
supported RHEL/CentOS.

That's why pidfd_open() cannot be a single implementation. It's so new; my 
local man-pages system has not a record about the API yet (but the web has: 
http://man7.org/linux/man-pages/man2/pidfd_open.2.html).

> If asyncio is only run from the main thread, FastChildWatcher is safe, fast 
> and has low memory footprint, no?

Unfortunately, no. FastChildWatcher is safe if you can guarantee that no code 
executed in asyncio main thread AND thread pools spawn subprocesses. Otherwise, 
the whole Python process becomes broken by the race condition between 
FastChildWatcher and any other wait()/waitpid()/waitid() call.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38591>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to