From: Luke Kenneth Casson Leighton Date: Thu, 26 Mar 2020 11:01:33 +0000 (+0000) Subject: wait for communication with closing program and close the stdin/out pipes X-Git-Tag: div_pipeline~1630 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b1a116f17cc260a50da1dd9d6ab00c6d3657bbeb;p=soc.git wait for communication with closing program and close the stdin/out pipes --- 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):