aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python/qemu/machine.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/qemu/machine.py b/python/qemu/machine.py
index f53abfa492..b9a98e2c86 100644
--- a/python/qemu/machine.py
+++ b/python/qemu/machine.py
@@ -359,6 +359,7 @@ class QEMUMachine(object):
if not has_quit:
self._qmp.cmd('quit')
self._qmp.close()
+ self._popen.wait(timeout=3)
except:
self._popen.kill()
self._popen.wait()