1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-07-16 03:47:19 +00:00

runfvp: add an asyncio TODO

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
Ross Burton
2022-04-26 13:33:52 +01:00
committed by Jon Mason
parent 0ea4b2220f
commit cc1c99f537
+1
View File
@@ -205,6 +205,7 @@ def runfvp(cli_args):
telnet = await asyncio.create_subprocess_exec("telnet", "localhost", str(port), stdin=sys.stdin, stdout=sys.stdout) telnet = await asyncio.create_subprocess_exec("telnet", "localhost", str(port), stdin=sys.stdin, stdout=sys.stdout)
await telnet.wait() await telnet.wait()
logger.debug(f"Telnet quit, cancelling tasks") logger.debug(f"Telnet quit, cancelling tasks")
# TODO: this is 3.7+
for t in asyncio.all_tasks(): for t in asyncio.all_tasks():
logger.debug(f"Cancelling {t}") logger.debug(f"Cancelling {t}")
t.cancel() t.cancel()