From b1a116f17cc260a50da1dd9d6ab00c6d3657bbeb Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 26 Mar 2020 11:01:33 +0000 Subject: [PATCH] wait for communication with closing program and close the stdin/out pipes --- src/soc/simulator/qemu.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/soc/simulator/qemu.py b/src/soc/simulator/qemu.py index c9b1b573..063bed65 100644 --- a/src/soc/simulator/qemu.py +++ b/src/soc/simulator/qemu.py @@ -45,6 +45,9 @@ class QemuController: def exit(self): self.gdb.exit() self.qemu_popen.kill() + outs, errs = self.qemu_popen.communicate() + self.qemu_popen.stdout.close() + self.qemu_popen.stdin.close() def run_program(program): -- 2.30.2