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.

Author rabraham
Recipients asvetlov, rabraham, yselivanov
Date 2021-04-19.02:50:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618800604.01.0.955764715037.issue43884@roundup.psfhosted.org>
In-reply-to
Content
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?
History
Date User Action Args
2021-04-19 02:50:04rabrahamsetrecipients: + rabraham, asvetlov, yselivanov
2021-04-19 02:50:04rabrahamsetmessageid: <1618800604.01.0.955764715037.issue43884@roundup.psfhosted.org>
2021-04-19 02:50:04rabrahamlinkissue43884 messages
2021-04-19 02:50:03rabrahamcreate