summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/utils/qemurunner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index 5366a635fe..337b5874b2 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -163,13 +163,13 @@ class QemuRunner:
163 163
164 if self.runqemu: 164 if self.runqemu:
165 bb.note("Sending SIGTERM to runqemu") 165 bb.note("Sending SIGTERM to runqemu")
166 os.kill(-self.runqemu.pid,signal.SIGTERM) 166 os.killpg(self.runqemu.pid, signal.SIGTERM)
167 endtime = time.time() + self.runqemutime 167 endtime = time.time() + self.runqemutime
168 while self.runqemu.poll() is None and time.time() < endtime: 168 while self.runqemu.poll() is None and time.time() < endtime:
169 time.sleep(1) 169 time.sleep(1)
170 if self.runqemu.poll() is None: 170 if self.runqemu.poll() is None:
171 bb.note("Sending SIGKILL to runqemu") 171 bb.note("Sending SIGKILL to runqemu")
172 os.kill(-self.runqemu.pid,signal.SIGKILL) 172 os.killpg(self.runqemu.pid, signal.SIGKILL)
173 self.runqemu = None 173 self.runqemu = None
174 if self.server_socket: 174 if self.server_socket:
175 self.server_socket.close() 175 self.server_socket.close()