From 12501b717f68e7b8f3d04fc89c71c86d055cd8cf Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 20 Dec 2021 17:13:32 +0000 Subject: [PATCH] runfvp: add an asyncio TODO Signed-off-by: Ross Burton --- scripts/runfvp | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/runfvp b/scripts/runfvp index 66a76cc5..524de24d 100755 --- a/scripts/runfvp +++ b/scripts/runfvp @@ -205,6 +205,7 @@ def runfvp(cli_args): telnet = await asyncio.create_subprocess_exec("telnet", "localhost", str(port), stdin=sys.stdin, stdout=sys.stdout) await telnet.wait() logger.debug(f"Telnet quit, cancelling tasks") + # TODO: this is 3.7+ for t in asyncio.all_tasks(): logger.debug(f"Cancelling {t}") t.cancel()