python/machine.py: consolidate _post_shutdown()
commit14661d93d787846833b0e62d5995195c8851f741
authorJohn Snow <jsnow@redhat.com>
Fri, 10 Jul 2020 05:06:38 +0000 (10 01:06 -0400)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 14 Jul 2020 20:22:22 +0000 (14 22:22 +0200)
tree9758e374da803afae0ff0f268d7b9362efad3ddb
parent01afa757b6f1b8c7858cc29b8332e9fb6aa1e16f
python/machine.py: consolidate _post_shutdown()

Move more cleanup actions into _post_shutdown. As a change, if QEMU
should so happen to be terminated during a call to wait(), that event
will now be logged.

This is not likely to occur during normative use.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Tested-by: Cleber Rosa <crosa@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200710050649.32434-2-jsnow@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
python/qemu/machine.py