From: Richard Purdie Date: Sat, 25 Sep 2021 09:21:58 +0000 (+0100) Subject: oeqa/qemurunner: Use oe._exit(), not sys.exit() X-Git-Tag: yocto-3.4~65 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=ec08498ff29de9ccd23be88b9d7af3dab6bbb81e;p=openembedded-core.git 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 --- 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)" %