aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-25 10:21:58 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-26 12:05:04 +0100
commitec08498ff29de9ccd23be88b9d7af3dab6bbb81e (patch)
tree6e03373d1b1c878b337a1fc12e6b7305c5a6bde6
parentcb2e8efd316d44b9b1453882114856e0eb7b3500 (diff)
downloadopenembedded-core-ec08498ff29de9ccd23be88b9d7af3dab6bbb81e.tar.gz
openembedded-core-ec08498ff29de9ccd23be88b9d7af3dab6bbb81e.tar.bz2
openembedded-core-ec08498ff29de9ccd23be88b9d7af3dab6bbb81e.zip
oeqa/qemurunner: Use oe._exit(), not sys.exit()
sys.exit will cause finally statements and other code to run at exit. Since we're using os.fork() here, os._exit() is apprioriate in this codepath. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/utils/qemurunner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index d55248c497..d961a9a218 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -265,7 +265,7 @@ class QemuRunner:
r = os.fdopen(r)
x = r.read()
os.killpg(os.getpgid(self.runqemu.pid), signal.SIGTERM)
- sys.exit(0)
+ os._exit(0)
self.logger.debug("runqemu started, pid is %s" % self.runqemu.pid)
self.logger.debug("waiting at most %s seconds for qemu pid (%s)" %