This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: asyncio child watchers aren't fork friendly
Type: Stage:
Components: asyncio Versions: Python 3.8, Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: asvetlov, yselivanov, zmedico
Priority: normal Keywords:

Created on 2018-05-29 22:45 by yselivanov, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg318133 - (view) Author: Yury Selivanov (yselivanov) * (Python committer) Date: 2018-05-29 22:45
_UnixDefaultEventLoopPolicy doesn't detect fork and tries to re-use the inherited child watcher. [1] is my idea how to fix this.

Andrew, AFAIK subprocesses was something that you worked on at some point. Do you have time to look into this?  Need tests and I'm not sure if I got [1] quite right.

This probably won't make it to 3.7.0, but 3.7.1 seems like a good target.

[1] https://github.com/1st1/cpython/commit/b4e6b26c565d9417a6f57a794a4669d7a7eeae88
History
Date User Action Args
2022-04-11 14:59:01adminsetgithub: 77869
2018-05-29 22:56:08zmedicosetnosy: + zmedico
2018-05-29 22:45:03yselivanovcreate