]> git.proxmox.com Git - mirror_qemu.git/commit
python/qemu: Change ConsoleSocket to optionally drain socket.
authorRobert Foley <robert.foley@linaro.org>
Fri, 24 Jul 2020 06:45:08 +0000 (07:45 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 27 Jul 2020 08:41:56 +0000 (09:41 +0100)
commit80ded8e99d9fc44c206f6b2fae6638df7dcf9305
treecd19ae09eb60738e74adf261acc20b6e803a0d4d
parent4b84d87449f7f7cae5a032f40200915332b32a70
python/qemu: Change ConsoleSocket to optionally drain socket.

The primary purpose of this change is to clean up
machine.py's console_socket property to return a single type,
a ConsoleSocket.

ConsoleSocket now derives from a socket, which means that
in the default case (of not draining), machine.py
will see the same behavior as it did prior to ConsoleSocket.

Signed-off-by: Robert Foley <robert.foley@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20200717203041.9867-3-robert.foley@linaro.org>
Message-Id: <20200724064509.331-16-alex.bennee@linaro.org>
python/qemu/console_socket.py
python/qemu/machine.py