qemu.py: Don't set _popen=None on error/shutdown
commit37bbcd575745d9bea4f840164e75dd2f40e5ee91
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 26 May 2017 18:11:58 +0000 (26 15:11 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 5 Jun 2017 17:59:09 +0000 (5 14:59 -0300)
tree5e6e9a44cfd013d8d09fcdd43c030cdfdaffd4d6
parent99861ecbc53c705fff5e4ea774f0da1193e81da8
qemu.py: Don't set _popen=None on error/shutdown

Keep the Popen object around to we can query its exit code later.

To keep the existing 'self._popen is None' checks working, add a
is_running() method, that will check if the process is still running.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20170526181200.17227-2-ehabkost@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
scripts/qemu.py