[issue38104] File descriptor error when subprocess call is used with event loop enabled in main thread

Andrew Svetlov report at bugs.python.org
Fri Sep 13 07:57:12 EDT 2019


Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:

You spawn too many subprocesses that finish virtually at the same time.
It leads to wakeup_fd overrun.

Python 3.6 is in security mode, sorry (and the fix is impossible).
Python 3.7 has warn_on_full_buffer=False flag for  https://docs.python.org/3/library/signal.html#signal.set_wakeup_fd but asyncio doesn't use it for reasons.

Python 3.8 doesn't subscribe for SIGCHLD by default, thus the provided example finishes without any warning.

I'm going to closing the issue as won't fix.

----------
resolution:  -> wont fix
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38104>
_______________________________________


More information about the Python-bugs-list mailing list