[issue37381] Script using ProactorEventLoop does not exit cleanly when subprocesses are spawned.

2019-06-23 Thread William D. Jones
Change by William D. Jones : -- title: Script using ProactorEventLoop does not exit cleanly on Windows with multiple subprocesses -> Script using ProactorEventLoop does not exit cleanly when subprocesses are spawned. ___ Python tracker <

[issue37381] Script using ProactorEventLoop does not exit cleanly on Windows with multiple subprocesses

2019-06-23 Thread William D. Jones
William D. Jones added the comment: Update: It turns out multiple spawned subprocesses are NOT required. If I replace "(short_fut, _) = await spawn()" with "short_fut = asyncio.ensure_future(asyncio.sleep(4))", t

[issue37381] Script using ProactorEventLoop does not exit cleanly on Windows with multiple subprocesses

2019-06-23 Thread William D. Jones
New submission from William D. Jones : On Windows 7, when using ProactorEventLoop, when asyncio.subprocess.terminate is called on the last subprocess when multiple subprocesses are spawned*, the last subprocess will never exit, and the Python interpreter will never exit. Spawning an