Python libs: close console sockets before shutting down the VMs
commit085809670201c6d3a33e37dc753a23115ba8ceb3
authorCleber Rosa <crosa@redhat.com>
Mon, 28 Oct 2019 23:04:04 +0000 (28 19:04 -0400)
committerCleber Rosa <crosa@redhat.com>
Mon, 28 Oct 2019 23:04:04 +0000 (28 19:04 -0400)
treeec874607c1a36196ad2d3f8317eacfcb3305fcf1
parent5449d937cddf78a3c592e58228fd1c248edd0dad
Python libs: close console sockets before shutting down the VMs

Currently, the console socket on QEMUMachine is closed after the QMP
command to gracefully exit QEMU is executed.  Because of a possible
deadlock (QEMU waiting for the socket to become writable) let's close
the console socket earlier.

Reference: <20190607034214.GB22416@habkost.net>
Reference: https://bugs.launchpad.net/qemu/+bug/1829779
From: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20190911023558.4880-2-crosa@redhat.com>
python/qemu/machine.py