[issue43884] Cannot cleanly kill a subprocess using high-level asyncio APIs

2022-03-23 Thread Kumar Aditya
Change by Kumar Aditya : -- pull_requests: +30160 pull_request: https://github.com/python/cpython/pull/32073 ___ Python tracker ___

[issue43884] Cannot cleanly kill a subprocess using high-level asyncio APIs

2022-03-23 Thread Kumar Aditya
Kumar Aditya added the comment: @asvetlov Do you have any insight for this issue? -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue43884] Cannot cleanly kill a subprocess using high-level asyncio APIs

2022-02-28 Thread Kumar Aditya
Change by Kumar Aditya : -- keywords: +patch nosy: +kumaraditya303 nosy_count: 5.0 -> 6.0 pull_requests: +29734 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31611 ___ Python tracker

[issue43884] Cannot cleanly kill a subprocess using high-level asyncio APIs

2022-02-28 Thread Kumar Aditya
Change by Kumar Aditya : -- versions: +Python 3.11 -Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43884] Cannot cleanly kill a subprocess using high-level asyncio APIs

2021-08-19 Thread Eli Skeggs
Eli Skeggs added the comment: I'm also experiencing this, with virtually identical code, on macOS 10.15.7. The given fix (process._transport.close()) also works for me, so I'm just using that workaround for the time being. -- nosy: +skeggse ___ Py

[issue43884] Cannot cleanly kill a subprocess using high-level asyncio APIs

2021-04-19 Thread Ronal Abraham
Ronal Abraham added the comment: I see this on MacOS and Linux, but I suspect any Unix-like system would have the same behavior. -- ___ Python tracker ___ ___

[issue43884] Cannot cleanly kill a subprocess using high-level asyncio APIs

2021-04-19 Thread Dennis Sweeney
Dennis Sweeney added the comment: Running kill_subprocess.py on Windows 10, I get these results: Python 3.7.2 (tags/v3.7.2:9a3ffc0492) - raises NotImplementedError in base_events.py, _make_subprocess_transport Python 3.8.2 (tags/v3.8.2:7b3ab59) - Success Python 3.9.0 (tags/v3.9.0:9cf67

[issue43884] Cannot cleanly kill a subprocess using high-level asyncio APIs

2021-04-18 Thread Ronal Abraham
Ronal Abraham added the comment: Reproducing the program here: import asyncio async def test(): process = await asyncio.create_subprocess_shell( "sleep 2 && echo done", stdout=asyncio.subprocess.PIPE, ) await asyncio.sleep(1)

[issue43884] Cannot cleanly kill a subprocess using high-level asyncio APIs

2021-04-18 Thread Ronal Abraham
New submission from Ronal Abraham : There doesn't appear to be a way to prematurely kill a subprocess using the high-level asyncio subprocess APIs (https://docs.python.org/3.9/library/asyncio-subprocess.html) without getting a traceback on exit. On exit, the attached program writes the follo