From 47be57dca71269da0277fb4d444aa26e550060fc Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Fri, 20 Feb 2015 17:31:02 +0100 Subject: [PATCH] Fix qemu close --- gns3server/modules/qemu/__init__.py | 2 +- gns3server/modules/qemu/qemu_vm.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/modules/qemu/__init__.py b/gns3server/modules/qemu/__init__.py index 69abd613..2d643204 100644 --- a/gns3server/modules/qemu/__init__.py +++ b/gns3server/modules/qemu/__init__.py @@ -100,7 +100,7 @@ class Qemu(BaseManager): return "" try: output = yield from subprocess_check_output(qemu_path, "-version") - match = re.search("version\s+([0-9a-z\-\.]+)", output.decode("utf-8")) + match = re.search("version\s+([0-9a-z\-\.]+)", output) if match: version = match.group(1) return version diff --git a/gns3server/modules/qemu/qemu_vm.py b/gns3server/modules/qemu/qemu_vm.py index 23ddf018..2464b725 100644 --- a/gns3server/modules/qemu/qemu_vm.py +++ b/gns3server/modules/qemu/qemu_vm.py @@ -601,7 +601,7 @@ class QemuVM(BaseVM): log.info("stopping QEMU VM instance {} PID={}".format(self._id, self._process.pid)) try: self._process.terminate() - self._process.wait(1) + self._process.wait() except subprocess.TimeoutExpired: self._process.kill() if self._process.poll() is None: