diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-25 10:21:58 +0100 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2021-09-29 16:22:10 +0800 |
commit | a99e23c403abd8e520079e2e216d87e713559682 (patch) | |
tree | c5a832f148e67afb69026e53d5b6c1c386c7c7b1 | |
parent | 26109606df69374d06046b758492fb16fa224db9 (diff) | |
download | openembedded-core-contrib-a99e23c403abd8e520079e2e216d87e713559682.tar.gz |
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>
(cherry picked from commit ec08498ff29de9ccd23be88b9d7af3dab6bbb81e)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r-- | meta/lib/oeqa/utils/qemurunner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index a0f17d557b..d6d47cfabb 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py @@ -235,7 +235,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)" % |