Catch ProcessLookupError in Qemu VM.

This commit is contained in:
grossmj 2015-10-04 14:20:44 -06:00
parent 3f86df5169
commit fc5afa6676

View File

@ -611,6 +611,8 @@ class QemuVM(BaseVM):
log.error("Cannot stop the Qemu process: {}".format(e)) log.error("Cannot stop the Qemu process: {}".format(e))
if self._process.returncode is None: if self._process.returncode is None:
log.warn('QEMU VM "{}" with PID={} is still running'.format(self._name, self._process.pid)) log.warn('QEMU VM "{}" with PID={} is still running'.format(self._name, self._process.pid))
except ProcessLookupError:
pass
self._process = None self._process = None
self._started = False self._started = False
self._stop_cpulimit() self._stop_cpulimit()