From cc1c99f53737bca1e503da4e08ba11e5b27d2ae5 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 26 Apr 2022 13:33:52 +0100 Subject: [PATCH] runfvp: add an asyncio TODO Signed-off-by: Ross Burton Signed-off-by: Jon Mason --- 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()