aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Mason <jon.mason@arm.com>2021-09-24 14:20:27 -0400
committerNaveen Saini <naveen.kumar.saini@intel.com>2021-09-27 11:07:52 +0800
commite05b125c9c8203ed0b9d1b72b025a6f026a7c1c6 (patch)
treea2c4edbfa4d9eb1f8d6aa5d2f4ffcd9381876a6b
parentc9e88ab72c17ea19069ebe09f5875fe66ff4bbbb (diff)
downloadmeta-zephyr-e05b125c9c8203ed0b9d1b72b025a6f026a7c1c6.zip
meta-zephyr-e05b125c9c8203ed0b9d1b72b025a6f026a7c1c6.tar.gz
meta-zephyr-e05b125c9c8203ed0b9d1b72b025a6f026a7c1c6.tar.bz2
qemuzephyrrunner.py: use os._exit instead of sys.exit
sys.exit(0) can cause an error to be reported when the child exits, even though not an error. Since this is a child process, os._exit(0) is the proper way to exit and not cause this issue. Signed-off-by: Jon Mason <jon.mason@arm.com> Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
-rw-r--r--lib/oeqa/utils/qemuzephyrrunner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oeqa/utils/qemuzephyrrunner.py b/lib/oeqa/utils/qemuzephyrrunner.py
index a1ed30b..7b486ce 100644
--- a/lib/oeqa/utils/qemuzephyrrunner.py
+++ b/lib/oeqa/utils/qemuzephyrrunner.py
@@ -191,7 +191,7 @@ class QemuZephyrRunner(QemuRunner):
r = os.fdopen(r)
x = r.read()
os.killpg(os.getpgid(self.runqemu.pid), signal.SIGTERM)
- sys.exit(0)
+ os._exit(0)
bb.note("qemu started, pid is %s" % self.runqemu.pid)
return self.create_socket()