From c07b8c746eaa0a58007567869e43ca255ed0203c Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 26 Feb 2015 10:18:01 +0100 Subject: [PATCH] Drop poll from Qemu --- gns3server/modules/qemu/qemu_vm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/modules/qemu/qemu_vm.py b/gns3server/modules/qemu/qemu_vm.py index 5321aac6..d42e23e1 100644 --- a/gns3server/modules/qemu/qemu_vm.py +++ b/gns3server/modules/qemu/qemu_vm.py @@ -522,7 +522,7 @@ class QemuVM(BaseVM): Stops the cpulimit process. """ - if self._cpulimit_process and self._cpulimit_process.poll() is None: + if self._cpulimit_process and self._cpulimit_process.returncode is None: self._cpulimit_process.kill() try: self._process.wait(3) @@ -597,7 +597,7 @@ class QemuVM(BaseVM): self._process.wait() except subprocess.TimeoutExpired: self._process.kill() - if self._process.poll() is None: + if self._process.returncode is None: log.warn("QEMU VM instance {} PID={} is still running".format(self._id, self._process.pid)) self._process = None