Message391350
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)
process.kill()
await process.wait()
# process._transport.close()
asyncio.run(test())
Can I use the high-level API to kill a subprocess cleanly without having to access the protected member process._transport? Seems like an oversight perhaps? |
|
Date |
User |
Action |
Args |
2021-04-19 02:50:04 | rabraham | set | recipients:
+ rabraham, asvetlov, yselivanov |
2021-04-19 02:50:04 | rabraham | set | messageid: <1618800604.01.0.955764715037.issue43884@roundup.psfhosted.org> |
2021-04-19 02:50:04 | rabraham | link | issue43884 messages |
2021-04-19 02:50:03 | rabraham | create | |
|